Class: PhlexKit::CardTitle
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::CardTitle
- Defined in:
- app/components/phlex_kit/card/card_title.rb
Overview
Title line of a PhlexKit::Card header — an
. See card.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ CardTitle
constructor
A new instance of CardTitle.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ CardTitle
Returns a new instance of CardTitle.
4 5 6 |
# File 'app/components/phlex_kit/card/card_title.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_title.rb', line 8 def view_template(&block) h3(**mix({ class: "pk-card-title" }, @attrs), &block) end |