Class: Button::IconComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Button::IconComponent
- Defined in:
- app/components/spark/button/icon_component.rb
Instance Method Summary collapse
Instance Method Details
#before_render ⇒ Object
3 4 5 6 7 |
# File 'app/components/spark/button/icon_component.rb', line 3 def before_render aria_attr label: text add_class("theme-icon-only") super end |
#button_content ⇒ Object
11 12 13 |
# File 'app/components/spark/button/icon_component.rb', line 11 def concat component("ui/icon", name: icon, class: join_class('icon')) if icon end |