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