Class: JetUi::Alert::IconComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Alert::IconComponent
- Defined in:
- app/components/jet_ui/alert/icon_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ IconComponent
constructor
A new instance of IconComponent.
Constructor Details
#initialize(**options) ⇒ IconComponent
Returns a new instance of IconComponent.
6 7 8 |
# File 'app/components/jet_ui/alert/icon_component.rb', line 6 def initialize(**) @options = end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'app/components/jet_ui/alert/icon_component.rb', line 10 def call content_tag :span, content, class: classes, **@options end |