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.

Dropzone

A drop target for files with a picker, a drag overlay, and readable rejections.

When to use

Use when
People add files by dragging them onto the page or choosing them, with limits on type and size.
Avoid when
The file is a single form field with no drag and drop; use a plain file Input.

Installation

The source lands in src/components/ui/dropzone.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
@stylexjs/stylex, react-dropzone
Shelf items
Button, foundations, utils
Figma
Optional native Figma library. See Designers.

Verified

Size
2.4 kB gzipped on its own, 15 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
Accessibility
Axe passes on 2 stories
Behavior
2 interaction tests in Storybook
Rendering
Parent re-renders skip its consumers
React Doctor
React Doctor finds nothing