Toggle Sidebar B
header.lightDarkMode D
Menubar
Persistent application menu bar (File, Edit, View ...). Each top-level item opens a DropdownMenu-style panel. Use for desktop-app-style UIs.
Default
File-Edit-View bar with shortcuts.
With checkbox items
Toggle view options with checkbox items bound to v-model.
With submenu
Nest related actions in a submenu that opens on hover.
API Reference
Props, events, and slots for each sub-component.
Menubar
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| modelValue | string | — | Open menu value. Supports v-model. |
Events
| Event | Description |
|---|---|
| update:modelValue | Fires when the active top-level menu changes. |
MenubarMenu / MenubarTrigger
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | (MenubarMenu) Identifier for this menu. Trigger opens its panel. |
MenubarContent
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | Extra classes. Forwards positioning props to reka-ui MenubarContent. |
MenubarItem
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| disabled | boolean | false | Block selection. |
| inset | boolean | false | Extra left padding to align with icon items. |
Events
| Event | Description |
|---|---|
| select | Fires when the item is chosen. |
MenubarCheckboxItem / MenubarRadioItem
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| modelValue | boolean | string | — | Item state. Supports v-model. |
Events
| Event | Description |
|---|---|
| update:modelValue | Fires when the checkbox toggles or the radio value changes. |
MenubarSub / MenubarSubTrigger / MenubarLabel
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| inset | boolean | false | Align SubTrigger or Label with icon items. Submenu opens on hover or right-arrow. |
Accessibility
Keyboard shortcuts and ARIA behavior.
Keyboard
| Shortcut | Description |
|---|---|
| ← | Moves focus to the previous top-level menu trigger. |
| → | Moves focus to the next top-level menu trigger. |
| ↑ | Moves to the previous item within an open menu. |
| ↓ | Opens the focused menu, or moves to the next item within an open menu. |
| Enter | Opens a menu or activates the focused item. |
| Space | Opens a menu or activates the focused item. |
| Esc | Closes the open menu and returns focus to its trigger. |
- Uses role=menubar with a roving tabindex across the top-level triggers.
- Right/left arrows step into and out of submenus while a menu is open.