Class: NitroKit::Input

Inherits:
Component
  • Object
show all
Defined in:
app/components/nitro_kit/input.rb

Instance Attribute Summary

Attributes inherited from Component

#attrs

Instance Method Summary collapse

Methods inherited from Component

#data_merge, #initialize, #merge, merge

Constructor Details

This class inherits a constructor from NitroKit::Component

Instance Method Details

#view_templateObject



9
10
11
12
13
14
# File 'app/components/nitro_kit/input.rb', line 9

def view_template
  input(
    **attrs,
    class: merge(INPUT, attrs[:class])
  )
end