On this page

Dropdown menu

The parts of the dropdown menu, when to use each, and the tokens.

Draft. Ported from the shadcn-vue DropdownMenu (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.

The dropdown menu is the list that opens from a button. Menu button and Split button say when to use the button; this page covers what can go in the menu.

When to use each part

  • Items for actions: export, duplicate, delete.
  • Checkbox items for options people turn on or off without leaving the page, such as which columns a table shows.
  • Radio items for one choice from two to five, such as the sort order. For a value in a form, use a select.
  • Labels and groups when a menu has more than about seven items.
  • A sub-menu for a second list that belongs to one item, such as the places a job can be moved to.

Anatomy

Part Notes
Menu color.surface.overlay with no border, radius.overlay, elevation.shadow.overlay, padding space.overlay, at z-index.overlay.
DropdownMenuItem 32 px (size.control.default): optional icon (color.icon.subtle), label (font.label.default), space.item.x at the sides, radius.item, optional DropdownMenuShortcut (font.body.small, color.text.subtle). Highlight color.surface.overlay.hover. variant="destructive" uses color.text.danger.
DropdownMenuCheckboxItem An option people turn on or off. A check in color.icon at the end shows it is on.
DropdownMenuRadioGroup, DropdownMenuRadioItem One choice from a few. The chosen item shows the check.
DropdownMenuLabel, DropdownMenuGroup A heading for a group of items: font.heading.xsmall, color.text.subtle.
DropdownMenuSeparator A color.border line between groups.
DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent 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.

Content

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