Class: NitroKit::FieldGroup
- Defined in:
- app/components/nitro_kit/field_group.rb
Constant Summary collapse
- FIELD_GROUP_BASE =
"space-y-6"
Instance Attribute Summary
Attributes inherited from Component
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_template(&block) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/components/nitro_kit/field_group.rb', line 5 def view_template(&block) div( **attrs, class: merge([FIELD_GROUP_BASE, attrs[:class]]), &block ) end |