Context Menu
Right-click menu for any area (also Shift+F10 / the Menu key), sharing the DropdownMenu panel and item model.
6 files · 478 locdeps: clsx, tailwind-merge
Installation
With the shadcn CLI, pointing at this platform’s registry:
npx shadcn@latest add https://opusui.131199999.xyz/r/context-menu.jsonOr offline, straight from your opus55 checkout (copies every file it needs):
node ../tailwind_component/opus55/scripts/add.mjs context-menuUsage
import { ContextMenu } from "@/components/opus/ui/context-menu";
<ContextMenu items={items}><div>Right-click me</div></ContextMenu>API
| Prop | Type | Default | Description |
|---|---|---|---|
| items | MenuItem[] | — | Same model as DropdownMenu. |