Menubar
v1.0.1Updated 20 Jul 2026Application menu bar (File / Edit / View…) built on Radix Menubar. Same item vocabulary and visual language as DropdownMenu — items, checkbox items, radio groups, nested submenus, separators and keyboard-shortcut hints —
Preview
Live · 8 storiesDefaultOpen ↗
▸Why this is recommendedmenumenubarapplication-menufile-menu+3
The default, out-of-the-box Menubar.
Recommended for+14
- ✓Editor-style app chrome (invoice editor, document designer)
- ✓Desktop-like admin tools with File/Edit/View menus
- ✓Dense toolbars needing grouped command menus
Tags+6
menumenubarapplication-menufile-menuradixkeyboarddefault
Features+4
- Horizontal bar of menus with roving tab index (one Tab stop)
- Arrow-key navigation between menus, including while a menu is open
- Full item vocabulary: Item, CheckboxItem, RadioGroup/RadioItem, Label, Separator, Shortcut
- Nested submenus (Sub / SubTrigger / SubContent)
- Destructive item variant + disabled items and triggers
- Visual parity with DropdownMenu item styling
- Controlled or uncontrolled active menu (value / defaultValue / onValueChange)
- Sizes: sm / md (compact density preset)
- Respects prefers-reduced-motion
Not recommended for−2
- ✕Single contextual menus on a button (use DropdownMenu)
- ✕Site navigation (use Navbar / Sidebar)
- ✕Mobile-first layouts (use BottomNavigation or Sheet)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
PropTypeRequired
sizeDensity preset for the bar and its triggers (default md)
—valueControlled open-menu value
—defaultValueUncontrolled initially open menu
—onValueChangeOpen-menu change callback
—loopWrap arrow-key navigation at the ends
—