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