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.

Drawer

A modal panel that slides in from any edge and can be swiped away. Set swipeDirection to right or left for a side sheet.

When to use

Use when
A bottom sheet on mobile, or a side panel for filters, details, or an edit form next to the page.
Avoid when
The task needs full attention and a clear decision; use Dialog or Alert Dialog.

Installation

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

Usage

Examples

Side

Opens as a panel from the edge, for forms and details.

Built on

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

Verified

Size
2.8 kB gzipped on its own, 35 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 Compiler
Compiles with React Compiler
React Doctor
React Doctor finds nothing