Class: JetUi::Card::HeaderComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Card::HeaderComponent
- Defined in:
- app/components/jet_ui/card/header_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(direction: :col, align: :start, justify: :start, bordered: true, **options) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Constructor Details
#initialize(direction: :col, align: :start, justify: :start, bordered: true, **options) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
6 7 8 9 10 11 12 |
# File 'app/components/jet_ui/card/header_component.rb', line 6 def initialize(direction: :col, align: :start, justify: :start, bordered: true, **) @direction = direction @align = align @justify = justify @bordered = bordered @options = end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'app/components/jet_ui/card/header_component.rb', line 14 def call content_tag(:div, content, class: classes, **@options) end |