Component packs › Unfurl › Context Menu
It grows from the exact pixel you right-clicked and unrolls down, or up near the bottom; Shift+F10 and long-press open it too.
Context Menu is a menu from Unfurl, a component pack with 7 menus and popovers: Menus and popovers that grow from the exact point they came from and unroll like paper. Price: $2 for the whole pack.
Built with: grows from the pointer, flips by space, keyboard and touch.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
items | ContextMenuItem[] | ||
hint | string | Text in the area. | |
onSelect | (index: number, item: ContextMenuItem) => void |
readonly open: booleanopenAt(x: number, y: number): void: Opens at a point inside the area (px), or closes with null.close(): voiddestroy(): voidimport ContextMenu from './ContextMenu';
<ContextMenu />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Menus and popovers.