Menubar
stableA horizontal bar of dropdown menus, like a desktop app.
Basic usage
Examples
Full application menubar
Three menus with submenus, separators, shortcuts, and radio groups.
Application menubar
Menubar supports multiple menus, submenus, shortcuts, checkbox and radio items.
Features
- Multiple menus.
- Roving focus across the bar.
Installation
bash
pnpm dlx structyl add menubarAPI Reference
Menubar.Root
A horizontal bar of menus.
| Prop | Type | Default |
|---|---|---|
| value | stringControlled open menu. | — |
| onValueChange | (value: string) => voidCalled when the open menu changes. | — |
| loop | booleanWhether arrow navigation wraps. | true |
Menubar.Menu
A single menu within the bar.
| Prop | Type | Default |
|---|---|---|
| value | stringOptional stable identifier. | — |
Menubar.Trigger
The button that opens a menu.
| Prop | Type | Default |
|---|---|---|
| disabled | booleanDisable this menu. | — |
Menubar.Content
The menu surface.
| Prop | Type | Default |
|---|
Menubar.Item
A selectable item.
| Prop | Type | Default |
|---|---|---|
| inset | booleanIndent the item. | — |