Context menu

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.

ContextMenu3D props

PropTypeDefaultDescription
itemsMenuItem[]The items in the menu. Reuses the item shape of DropdownMenu3D.
onSelect(id: string) => voidCalled with the id of the chosen item.
childrenReactNodeThe area that reacts to right-click.
aria-labelstring"Context menu"Accessible name of the menu.
classNamestringExtra classes added to the area.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks