Class: PhlexKit::CardHeader
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::CardHeader
- Defined in:
- app/components/phlex_kit/card/card_header.rb
Overview
Header region of PhlexKit::Card — stacks a CardTitle + CardDescription. See card.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ CardHeader
constructor
A new instance of CardHeader.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ CardHeader
Returns a new instance of CardHeader.
4 5 6 |
# File 'app/components/phlex_kit/card/card_header.rb', line 4 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template(&block) ⇒ Object
8 9 10 |
# File 'app/components/phlex_kit/card/card_header.rb', line 8 def view_template(&block) div(**mix({ class: "pk-card-header" }, @attrs), &block) end |