Class: NitroKit::Label

Inherits:
Component
  • Object
show all
Defined in:
app/components/nitro_kit/label.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



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