Class: NitroKit::Label
- Defined in:
- app/components/nitro_kit/label.rb
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 ⇒ Object
3 4 5 6 7 8 |
# File 'app/components/nitro_kit/label.rb', line 3 def view_template label( **attrs, class: merge(["text-sm font-medium select-none", attrs[:class]]) ) { yield } end |