Menubar
A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.
On this page
Usage
Installation
Set up your license key before connecting the private registry.
Connect this project to https://docs.interfacesds.com using the full URL shown below, including {name}. In components.json, add the registries field at the top level. If the field already exists, add only the @interfaces-ds entry inside it. Keep your existing aliases and other registries.
For a global stylesheet in app/ or src/app/.
JSON{ "registries": { "@interfaces-ds": { "url": "https://docs.interfacesds.com/r/{name}.json", "headers": { "Authorization": "Bearer ${INTERFACES_DS_LICENSE_KEY}" } } } }Install the component.
Terminalnpx shadcn@latest add @interfaces-ds/menubar
API reference
Import these exports from @/components/ui/menubar. The tables cover component-specific props and common controls.
Menubar
| Prop | Type | Default |
|---|---|---|
disabled | boolean | — |
modal | boolean | — |
orientation | "horizontal" | "vertical" | — |
MenubarPortal
| Prop | Type | Default |
|---|---|---|
forceMount | true | — |
keepMounted | boolean | — |
MenubarMenu
| Prop | Type | Default |
|---|---|---|
defaultOpen | boolean | — |
disabled | boolean | — |
modal | boolean | — |
onOpenChange | (open: boolean, eventDetails: MenuPrimitive.Root.ChangeEventDetails) => void | — |
open | boolean | — |
orientation | "horizontal" | "vertical" | — |
MenubarTrigger
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
disabled | boolean | — |
name | string | — |
type | "button" | "submit" | "reset" | — |
value | string | number | readonly string[] | — |
MenubarContent
| Prop | Type | Default |
|---|---|---|
forceMount | true | — |
MenubarGroup
MenubarSeparator
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal" | "vertical" | — |
MenubarLabel
| Prop | Type | Default |
|---|---|---|
inset | boolean | — |
MenubarItem
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
disabled | boolean | — |
inset | boolean | — |
label | string | — |
variant | "default" | "danger" | "default" |
MenubarShortcut
MenubarCheckboxItem
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
checked | boolean | — |
defaultChecked | boolean | — |
disabled | boolean | — |
label | string | — |
onCheckedChange | (checked: boolean, eventDetails: MenuPrimitive.CheckboxItem.ChangeEventDetails) => void | — |
MenubarRadioGroup
| Prop | Type | Default |
|---|---|---|
disabled | boolean | — |
onValueChange | (value: any, eventDetails: MenuPrimitive.RadioGroup.ChangeEventDetails) => void | — |
MenubarRadioItem
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
disabled | boolean | — |
label | string | — |
MenubarSub
| Prop | Type | Default |
|---|---|---|
defaultOpen | boolean | — |
disabled | boolean | — |
onOpenChange | (open: boolean, eventDetails: MenuPrimitive.SubmenuRoot.ChangeEventDetails) => void | — |
open | boolean | — |
orientation | "horizontal" | "vertical" | — |
MenubarSubTrigger
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
disabled | boolean | — |
inset | boolean | — |
label | string | — |
MenubarSubContent
| Prop | Type | Default |
|---|---|---|
forceMount | true | — |