Context Menu
Reveals contextual actions at the pointer on right click or long press.
@rivetui/context-menuPreview
Explore each composition interactively, then open its code in the same context.
Default
↗
Deployment artifact
Right click or long press this surface.
build_84f2 · fra1 · ready
Selection
Canvas layersContext available
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/context-menuPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
ContextMenu
| Prop | Type | Default |
|---|---|---|
open | boolean | — |
defaultOpen | boolean | false |
disabled | boolean | false |
onOpenChange | (open: boolean, details) => void | — |
ContextMenuContent
| Prop | Type | Default |
|---|---|---|
side | "top" | "right" | "bottom" | "left" | pointer |