Menubar

Persistent application menu bar (File, Edit, View ...). Each top-level item opens a DropdownMenu-style panel. Use for desktop-app-style UIs.

Checkbox items

MenubarCheckboxItem toggles a boolean with v-model inside a menu.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

ts
import {
  Menubar,
  MenubarMenu,
  MenubarTrigger,
  MenubarContent,
  MenubarItem,
  MenubarLabel,
  MenubarSeparator,
  MenubarShortcut,
  MenubarCheckboxItem,
  MenubarRadioGroup,
  MenubarRadioItem,
  MenubarSub,
  MenubarSubTrigger,
  MenubarSubContent,
} from "@/components/ui/menubar";

Radio group

MenubarRadioGroup binds one-of-many selection with v-model.

Dark previewReplay previewOpen in new tab

With icons

A leading icon before each MenubarItem, with a label and separators.

Dark previewReplay previewOpen in new tab

API Reference

Menubar

PropTypeDefaultDescription
modelValuestring—Open menu value. Supports v-model.
EventDescription
update:modelValueFires when the active top-level menu changes.

MenubarMenu / MenubarTrigger

PropTypeDefaultDescription
valuestring—(MenubarMenu) Identifier for this menu. Trigger opens its panel.

MenubarContent

PropTypeDefaultDescription
classstring—Extra classes. Forwards positioning props to reka-ui MenubarContent.

MenubarItem

PropTypeDefaultDescription
disabledbooleanfalseBlock selection.
insetbooleanfalseExtra left padding to align with icon items.
EventDescription
selectFires when the item is chosen.

MenubarCheckboxItem / MenubarRadioItem

PropTypeDefaultDescription
modelValueboolean | string—Item state. Supports v-model.
EventDescription
update:modelValueFires when the checkbox toggles or the radio value changes.

MenubarSub / MenubarSubTrigger / MenubarLabel

PropTypeDefaultDescription
insetbooleanfalseAlign SubTrigger or Label with icon items. Submenu opens on hover or right-arrow.

Accessibility

Keyboard shortcuts and ARIA behavior.

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.
EnterOpens a menu or activates the focused item.
SpaceOpens a menu or activates the focused item.
EscCloses 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.