Menubar

A row of menus, like a desktop app's menu bar.

Installation

  1. Add the registryOnce per project
  2. Add menubar

Usage

Each MenubarMenu pairs a trigger with its menu. MenubarShortcut only displays a shortcut, so bind the keys yourself. Nest menus with MenubarSub, MenubarSubTrigger and MenubarSubContent.

Composition

Examples

Checkbox items

MenubarCheckboxItem toggles a setting with checked and onCheckedChange.

Radio items

Wrap MenubarRadioItems in a MenubarRadioGroup to pick one of several values.

Props

Items, labels and submenu triggers take inset to line up with items that have an icon.

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.