Skip to content
caliper ui pro docs

Menubar

File, Edit and View for an app that works like a desktop program: one highlight glides along the bar, and once a menu is open, moving along opens the next.

Pro
October close · Halden Docs

October close

Field notes from the October close. Revenue landed two days early; the Lisbon office is now on the shared ledger.

Last command: Nothing yet

When to use

  • Editors and tools with many commands grouped by menu.
  • Desktop web apps where people expect menus with shortcuts.

When not to use

  • A handful of actions; use buttons or a dropdown menu.
  • Site navigation; use the navigation menu.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/menubar

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

Menubar

0 props

No props of its own; it accepts the native props of its root element.

MenubarMenu

0 props

No props of its own; it accepts the native props of its root element.

MenubarTrigger

0 props

No props of its own; it accepts the native props of its root element.

MenubarContent

0 props

No props of its own; it accepts the native props of its root element.

MenubarItem

0 props

No props of its own; it accepts the native props of its root element.

MenubarCheckboxItem

0 props

No props of its own; it accepts the native props of its root element.

MenubarRadioGroup

0 props

No props of its own; it accepts the native props of its root element.

MenubarRadioItem

0 props

No props of its own; it accepts the native props of its root element.

MenubarGroup

0 props

No props of its own; it accepts the native props of its root element.

MenubarLabel

0 props

No props of its own; it accepts the native props of its root element.

MenubarSeparator

0 props

No props of its own; it accepts the native props of its root element.

MenubarShortcut

2 props
PropTypeDefault
keys *string—
classNamestring—

MenubarSub

0 props

No props of its own; it accepts the native props of its root element.

MenubarSubTrigger

0 props

No props of its own; it accepts the native props of its root element.

MenubarSubContent

0 props

No props of its own; it accepts the native props of its root element.

Keyboard

Enter or Space
Opens the menu from its trigger and activates the focused item.
↓ or ↑
Moves between items, wrapping at the ends; disabled items are skipped.
→ or ←
Opens and closes a submenu.
Escape
Closes the menu and returns focus to the trigger.
A–Z
Moves to the next item that starts with that letter.

Accessibility

It is built on native elements and keeps aria-hidden in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/menubar.md

The index of every part is at /llms.txt.

More in Actions