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.

Avatar

A person's picture, with initials while it loads or if it fails. Includes a status badge and overlapping groups.

VC

When to use

Use when
Showing who a person or account is, in lists, comments, or headers.
Avoid when
Representing things that aren't people or accounts; use an icon.

Installation

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

Usage

Examples

Sizes

ALALAL

Badge

A status dot in the corner, such as online presence.

AL

Group

Overlapping avatars, with a count for the rest.

MRJKSO
+4

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
1.6 kB gzipped on its own, 7.2 kB with the Shelf items and packages it builds on. JS and CSS in a production build, without React.
Accessibility
Axe passes on 6 stories
Behavior
6 interaction tests in Storybook
React Doctor
React Doctor finds nothing