Context Menu

Menus & Navigation
Local guide ↗ import { ContextMenu } from "bits-ui"

Context actions

Right-click the target surface to open actions at the pointer

Deployment card

Right-click anywhere on this surface

No action yet

View preferences

Checkbox state and a nested preview-size submenu stay inside the contextual workflow

Right-click the canvas for view options

The Trigger owns the right-click surface rather than a separate button. Once open, arrow keys move the highlighted item, Enter or Space selects, and Escape dismisses; disabled items are skipped. Item, CheckboxItem, RadioItem, and SubTrigger all accept textValue for typeahead when their rendered label is not plain text.

Content is portalled to document.body by default and uses the pointer location as its anchor. CheckboxItem exposes bindable checked and indeterminate states; its children snippet receives the resolved checked state for rendering an indicator.