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

#builder, from_template

Constructor Details

#initialize(**attrs) ⇒ Input

Returns a new instance of Input.



5
6
7
8
9
10
# File 'app/components/nitro_kit/input.rb', line 5

def initialize(**attrs)
  super(
    attrs,
    class: base_class
  )
end

Instance Method Details

#view_templateObject



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

def view_template
  input(**attrs)
end