Class: PhlexKit::PopoverHeader

Inherits:
BaseComponent show all
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

Methods inherited from BaseComponent

#on

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_templateObject



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