Toggle Sidebar B
header.lightDarkMode D

Context Menu

Right-click menu. Same shape as DropdownMenu but triggered by contextmenu events instead of a button. Supports nested submenus and checkbox/radio items.

Default

Right-click the trigger to open.

Right-click here

With submenu

Nest related actions in a submenu that opens on hover or right arrow.

Right-click here

Checkbox and radio items

Toggle options with checkbox items and pick one from a radio group.

Right-click here

API Reference

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

ContextMenu

Props

PropTypeDefaultDescription
openbooleanOpen state. Supports v-model:open.

Events

EventDescription
update:openFires when the menu opens or closes.

ContextMenuTrigger

Props

PropTypeDefaultDescription
disabledbooleanfalseStop the contextmenu event from opening the menu.

Slots

SlotDescription
defaultThe region that responds to right-click.

ContextMenuContent

Props

PropTypeDefaultDescription
classstringExtra classes. Forwards positioning props to reka-ui ContextMenuContent.

Events

EventDescription
close-auto-focusFires when focus returns after the menu closes.

ContextMenuItem

Props

PropTypeDefaultDescription
disabledbooleanfalseBlock selection.
insetbooleanfalseExtra left padding to align with sibling items that have an icon.

Events

EventDescription
selectFires when the item is chosen.

ContextMenuCheckboxItem / ContextMenuRadioItem

Props

PropTypeDefaultDescription
modelValueboolean | stringItem state. Supports v-model.

Events

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

ContextMenuSub / ContextMenuSubTrigger / ContextMenuSubContent

Props

PropTypeDefaultDescription
insetbooleanfalse(SubTrigger) Extra left padding to align with icon items. Submenu opens on hover/right-arrow.

ContextMenuLabel

Props

PropTypeDefaultDescription
insetbooleanfalseAlign the non-interactive section label with inset items.

Accessibility

Keyboard shortcuts and ARIA behavior.

Keyboard

ShortcutDescription
Shift+F10Opens the context menu from the keyboard (alongside the Menu key).
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.
EscCloses the menu.
ATyping characters jumps to the matching item (typeahead).
  • Opens via the contextmenu event (right-click, Shift+F10, or the Menu key).
  • Shares the same menu semantics as DropdownMenu (roving tabindex, role=menuitem) but is contextmenu-triggered.