Class: Maglev::Uikit::IconButtonComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Maglev::Uikit::IconButtonComponent
- Defined in:
- app/components/maglev/uikit/icon_button_component.rb
Instance Attribute Summary collapse
-
#icon_name ⇒ Object
readonly
Returns the value of attribute icon_name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #button_classes ⇒ Object
-
#initialize(icon_name: nil, **options) ⇒ IconButtonComponent
constructor
A new instance of IconButtonComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(icon_name: nil, **options) ⇒ IconButtonComponent
Returns a new instance of IconButtonComponent.
8 9 10 11 |
# File 'app/components/maglev/uikit/icon_button_component.rb', line 8 def initialize(icon_name: nil, **) @icon_name = icon_name @options = end |
Instance Attribute Details
#icon_name ⇒ Object (readonly)
Returns the value of attribute icon_name.
6 7 8 |
# File 'app/components/maglev/uikit/icon_button_component.rb', line 6 def icon_name @icon_name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'app/components/maglev/uikit/icon_button_component.rb', line 6 def @options end |
Instance Method Details
#button_classes ⇒ Object
13 14 15 |
# File 'app/components/maglev/uikit/icon_button_component.rb', line 13 def (...) helpers.(...) end |