Toggle Sidebar B
header.lightDarkMode D

Dropdown Menu

Click-triggered menu attached to a button. Supports items, separators, labels, shortcuts, checkbox and radio items, and nested submenus.

Default

Trigger button + items with separators.

Checkbox items

Toggle persisted state inside a menu.

Radio items

One-of-many selection within a menu.

API Reference

Props, events, and slots for each sub-component.

DropdownMenu

Props

PropTypeDefaultDescription
openbooleanOpen state. Supports v-model:open.
modalbooleantrueTrap focus and dim background when open.

Events

EventDescription
update:openFires when the menu opens or closes. Enables v-model:open.

DropdownMenuTrigger

Props

PropTypeDefaultDescription
asChildbooleanfalseMerge props onto the child element instead of a button.

DropdownMenuContent

Props

PropTypeDefaultDescription
side"top" | "right" | "bottom" | "left""bottom"Anchor side.
align"start" | "center" | "end""center"Alignment along the side.
sideOffsetnumber4Gap from the trigger in px.

Events

EventDescription
close-auto-focusFires when focus returns to the trigger after closing.

DropdownMenuItem

Props

PropTypeDefaultDescription
disabledbooleanfalseBlock selection.
insetbooleanfalseExtra left padding to align with icon items.

Events

EventDescription
selectFires when the item is chosen.

DropdownMenuCheckboxItem / DropdownMenuRadioItem

Props

PropTypeDefaultDescription
modelValueboolean | stringItem state. Supports v-model.

Events

EventDescription
update:modelValueFires when the checkbox toggles or the radio value changes.

DropdownMenuSub / DropdownMenuSubTrigger / DropdownMenuSubContent

Props

PropTypeDefaultDescription
insetbooleanfalse(SubTrigger) Align with icon items. Submenu opens on hover or right-arrow.

DropdownMenuLabel

Props

PropTypeDefaultDescription
insetbooleanfalseAlign the section label with inset items.

Accessibility

Keyboard shortcuts and ARIA behavior.

Keyboard

ShortcutDescription
SpaceOpens the menu from the trigger, or activates the focused item.
EnterOpens the menu from the trigger, or activates the focused item.
Moves focus to the previous item.
Moves focus to the next item.
Opens a submenu when focus is on a submenu trigger.
Closes a submenu and returns focus to its trigger.
HomeMoves focus to the first item.
EndMoves focus to the last item.
EscCloses the menu and returns focus to the trigger.
ATyping characters jumps to the matching item (typeahead).
  • Uses a roving tabindex: only one item is tabbable and arrows move focus between items.
  • Menu items use role=menuitem within a role=menu container.