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