Menubar
A visually persistent menu bar for desktop-style apps. Height h-8. Supports shortcuts, checkboxes, radios, and nested submenus.
Basic
Persistent File / Edit / View menus with shortcuts.
Installation
CLI
Also needs
npm i lucide-reactComposition
structure
Usage
menubar.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| inset | boolean | false | On `MenubarItem` / `MenubarLabel` / `MenubarSubTrigger` — indent to align with checkbox items. |
| variant | "default" · "destructive" | "default" | On `MenubarItem` — destructive styling for risky actions. |
| align | "start" · "center" · "end" | "start" | On `MenubarContent` — popup alignment. |
| className | string | — | Merge extra Tailwind classes on any part. |