Skip to content
RivetUI

Context Menu

Reveals contextual actions at the pointer on right click or long press.

@rivetui/context-menu

Preview

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-menu
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

ContextMenu

PropTypeDefault
openboolean—
defaultOpenbooleanfalse
disabledbooleanfalse
onOpenChange(open: boolean, details) => void—

ContextMenuContent

PropTypeDefault
side"top" | "right" | "bottom" | "left"pointer
Rivet UI / Context MenuComponents engineered, not decorated.