Shelf is open source and in early preview
Shelf

For AI agents: the documentation index is at /llms.txt, and any docs page is available as Markdown by appending .md to its URL.

Context Menu

A menu opened by right-clicking or long-pressing an area.

Right-click here

When to use

Use when
Offering shortcuts for an item on right-click or long-press, such as rows or canvas objects.
Avoid when
It is the only way to reach an action; right-click isn't discoverable, so offer a visible menu too.

Installation

The source lands in src/components/ui/context-menu.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.

Usage

Built on

Packages
@base-ui/react, @stylexjs/stylex
Shelf items
Dropdown Menu, utils
Accessibility
Focus, keyboard, and ARIA behavior come from Base UI.
Figma
Optional native Figma library. See Designers.

Verified

Size
0.5 kB gzipped on its own, 54 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
Accessibility
Axe passes on 5 stories
Behavior
4 interaction tests in Storybook
React Doctor
React Doctor finds nothing