Class: PhlexKit::MenubarGroup

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/menubar/menubar_group.rb

Overview

Grouping wrapper for related rows. Mirrors shadcn/ui's MenubarGroup. See menubar.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ MenubarGroup

Returns a new instance of MenubarGroup.



5
# File 'app/components/phlex_kit/menubar/menubar_group.rb', line 5

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



6
7
8
# File 'app/components/phlex_kit/menubar/menubar_group.rb', line 6

def view_template(&)
  div(**mix({ class: "pk-menubar-group", role: "group" }, @attrs), &)
end