Class: AtomicView::Component
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AtomicView::Component
- Defined in:
- lib/atomic_view/component.rb
Instance Method Summary collapse
- #class_names ⇒ Object
- #icon(name, variant: Heroicons.configuration.variant, options: {}, path_options: {}) ⇒ Object
Instance Method Details
#class_names ⇒ Object
16 17 18 19 |
# File 'lib/atomic_view/component.rb', line 16 def class_names(...) classes = super TailwindMerge::Merger.new.merge(classes) end |
#icon(name, variant: Heroicons.configuration.variant, options: {}, path_options: {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/atomic_view/component.rb', line 7 def icon(name, variant: Heroicons.configuration.variant, options: {}, path_options: {}) Heroicons::Icon.render( name: name, variant: variant, options: , path_options: ) end |