A menu that opens where you right-click. Also opens with Shift+F10 and with a long press on touch screens, and stays inside the window.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| items | MenuItem[] | The items in the menu. Reuses the item shape of DropdownMenu3D. | |
| onSelect | (id: string) => void | Called with the id of the chosen item. | |
| children | ReactNode | The area that reacts to right-click. | |
| aria-label | string | "Context menu" | Accessible name of the menu. |
| className | string | Extra classes added to the area. |