Class: PhlexKit::PopoverDescription
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::PopoverDescription
- Defined in:
- app/components/phlex_kit/popover/popover_description.rb
Overview
Muted body copy of a PopoverHeader, ported from shadcn/ui's PopoverDescription. See popover.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ PopoverDescription
constructor
A new instance of PopoverDescription.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ PopoverDescription
Returns a new instance of PopoverDescription.
5 |
# File 'app/components/phlex_kit/popover/popover_description.rb', line 5 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
6 7 8 |
# File 'app/components/phlex_kit/popover/popover_description.rb', line 6 def view_template(&) p(**mix({ class: "pk-popover-description" }, @attrs), &) end |