Menu

Option A Option B Option A Option B Option A Option B Option A Option B
Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

additional CSS classes

open :boolean

whether the menu is initially visible

false
anchor :string

CSS selector of the anchor/trigger element

placement :string

preferred placement of the menu

"bottom-start"
label :string

Accessible label for the menu (aria-label)

rest :global
Required inner_block * :slot

Menu items

<.dm_menu_item value="a">Option A</.dm_menu_item>
<.dm_menu_item value="b">Option B</.dm_menu_item>