API Reference
Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also accepted unless noted.
Menubar
The container for menus.
Props
orientation MenubarOrientation 'horizontal'
- Name
orientation- Description
The orientation of the menubar.
- Type
MenubarOrientation- Default
'horizontal'
openOnHover boolean —
- Name
openOnHover- Description
Force open-on-hover even when no menu is open. When omitted, follows open menu state.
- Type
boolean | undefined
closeDelay number 150
- Name
closeDelay- Description
Delay before closing after pointer leaves (ms).
- Type
number- Default
150
Data attributes
| Attribute | Description |
|---|---|
data-orientation | Determines the orientation of the menubar. |