← ui-lab

Context Menu

A menu summoned by right-clicking (or Shift+F10 / the ContextMenu key) on the target, opening at the pointer with the first item focused. Arrow keys move between items, Escape or an outside click closes it, and choosing an item returns focus to the target.

Preview

Right-click here

Installation

npx shadcn@latest add https://ui.publictheta.com/r/context-menu.json

Conformance

This component conforms to the @publictheta/ui-spec context-menu specification. Run the suite against any implementation with pnpm conformance.