Context Menu
Displays a menu of actions or options that appears when the user right-clicks an element.
Basic
Right-click the area to open a simple menu.
Installation
CLI
Also needs
npm i lucide-reactUsage
context-menu.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| inset | boolean | — | On Item / SubTrigger / Label / Checkbox / Radio — indent to align with icons. |
| variant | "default" · "destructive" | "default" | On ContextMenuItem — destructive styles for deletes. |
| checked | boolean | — | On ContextMenuCheckboxItem — checked state. |
| disabled | boolean | false | Disables the menu item. |