- Components
- Overlays
Context Menu
Right click (or long press) the region. Same menu as the dropdown.
Installation#
npx shadcn add @ortaui/context-menuExamples#
Default#
Right click here
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen | boolean | - | Controlled or uncontrolled state. |
| onOpenChange | (open: boolean) => void | - | Called when the open state changes. |
| ContextMenuTrigger | div props | - | The region that listens for right click and long press. |
| className | string | - | Merged with the component classes via cn(). |