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