On this page

Menubar

When to use a menubar, its parts, content and tokens.

Draft. Ported from the shadcn-vue Menubar (registry style reka-nova, read 12 November 2026) and styled with Beehexa tokens. Not yet approved. It is in the registry so teams can try it; the API may still change before approval.

A menubar is a row of menu names. Each opens a menu that looks and works like the Dropdown menu.

When to use

  • In an editor or tool with many commands, such as a field-mapping editor or a workflow designer, where people expect File, Edit and View.

When not to use

Anatomy

Part Notes
Bar 32 px (size.control.default), color.surface, a color.border edge, radius.control, padding space.050.
MenubarTrigger A menu name: font.label.default, radius.control.small, space.100 at the sides. Hover color.background.neutral.subtle.hover; while open color.background.neutral.subtle.pressed. Keyboard focus: the 2 px color.border.focus outline, drawn inside.
Part Notes
Menu color.surface.overlay with no border, radius.overlay, elevation.shadow.overlay, padding space.overlay, at z-index.overlay.
MenubarItem 32 px (size.control.default): optional icon (color.icon.subtle), label (font.label.default), space.item.x at the sides, radius.item, optional MenubarShortcut (font.body.small, color.text.subtle). Highlight color.surface.overlay.hover. variant="destructive" uses color.text.danger.
MenubarCheckboxItem An option people turn on or off. A check in color.icon at the end shows it is on.
MenubarRadioGroup, MenubarRadioItem One choice from a few. The chosen item shows the check.
MenubarLabel, MenubarGroup A heading for a group of items: font.heading.xsmall, color.text.subtle.
MenubarSeparator A color.border line between groups.
MenubarSub, MenubarSubTrigger, MenubarSubContent A sub-menu: the trigger has a chevron and keeps its highlight while the sub-menu is open.
inset On an item, label or sub-trigger with no icon, lines its text up with items that have one.

Menus open 4 px below the bar (space.overlay.offset), lined up with its edge.

Content

  • Use short, familiar menu names: File, Edit, View.
  • Write items as actions in sentence case: “Duplicate”, “Move to”.
  • Put destructive items last, after a separator.
  • Show the checked state with the check, which the menu does for you; never with colour alone.
  • Keep sub-menus to one level, and never put the only copy of a common action in a sub-menu.

Tokens

color.surface, color.background.neutral.subtle.hover, color.background.neutral.subtle.pressed, color.border.focus, border.width.focused, radius.control, font.label.default, color.surface.overlay, color.surface.overlay.hover, color.border, color.text, color.text.subtle, color.text.danger, color.text.disabled, color.icon, color.icon.subtle, color.icon.danger, color.icon.disabled, radius.overlay, radius.control.small, elevation.shadow.overlay, z-index.overlay, size.control.default, size.icon.default, space.050, space.100, space.400, font.body.default, font.body.small, font.label.small.