Component packs › Unfurl › Context Menu

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.

Context Menu props

PropTypeDefaultDescription
itemsContextMenuItem[]
hintstringText in the area.
onSelect(index: number, item: ContextMenuItem) => void

Methods on the ref

Use it in React

import ContextMenu from './ContextMenu';

<ContextMenu />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Unfurl

Good for: Menus and popovers.