Skip to content
caliper ui docs

Pro

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
pnpm dlx shadcn@latest add @caliper/menubar
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

Installs components/ui/menubar.tsxDepends on @radix-ui/react-dropdown-menu, @radix-ui/react-menubar, lucide-reactMotion none in component source

When to use

Use it for

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

Skip it when

  • 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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source. It is built from Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarGroup, MenubarLabel, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubTrigger and MenubarSubContent.

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

The worked example comes with Pro

The 106-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

Menubar

component

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

MenubarMenu

component

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

MenubarTrigger

component

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

MenubarContent

component

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

MenubarItem

component

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

MenubarCheckboxItem

component

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

MenubarRadioGroup

component

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

MenubarRadioItem

component

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

MenubarGroup

component

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

MenubarLabel

component

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

MenubarSeparator

component

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

MenubarShortcut

component
PropTypeDefault
keys *string—
classNamestring—

MenubarSub

component

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

MenubarSubTrigger

component

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

MenubarSubContent

component

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

Accessibility

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

Keyboard and focus handling comes from Radix dropdown-menu and menubar: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Motion

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.

All Actions examples