OPUS/UI

Navigation

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
Right-click here (or focus + Shift F10)

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/context-menu.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs context-menu

Usage

import { ContextMenu } from "@/components/opus/ui/context-menu";

<ContextMenu items={items}><div>Right-click me</div></ContextMenu>

API

PropTypeDefaultDescription
itemsMenuItem[]—Same model as DropdownMenu.

Command palette