Skip to main content

Card

boolean
Drop shadow instead of a border.
boolean | number
default:"true"
Inner padding; true is 16 px.

List

Rows in the style of a native settings screen.
List takes divided (default true). ListItem takes:
ReactNode
required
Main text.
ReactNode
Secondary text.
ReactNode
Slots at either end.
() => void
Makes the row a button. A chevron is shown unless you pass trailing.
string
Makes the row a link.

Avatar

Falls back to initials when there is no image. Props: src?, name? (initials and alt text), size?, square?.

Badge

tone: neutral, primary, danger, success. dot shows a small status dot with no label.

Divider

StatTile

Props: value, label, hint?, adornment? (shown top right).

Accordion

Accordion takes multiple? (allow several open) and defaultOpen?. AccordionItem takes title and an optional id.

Callout

An inline message box, for example a form’s error summary.
tone: neutral, info, success, warning, danger. icon overrides the tone’s icon; null hides it.

EmptyState

icon takes an icon name or any node. For a list that failed to load, use ErrorState instead: “nothing here yet” and “this didn’t load” ask the user for different things.

Img

An image that holds its space and fades in. It shows a shimmer (or a tint) while loading, loads lazily below the fold, and shows a quiet placeholder if it fails, instead of a layout jump and a broken-image icon.
string
required
Alternative text.
number
Width ÷ height, so the box keeps its place before the image arrives.
number | string
Corner radius.
CSS object-fit
default:"'cover'"
How the image fills the box.
string
The image’s dominant color, shown while loading instead of the shimmer.
ReactNode
Shown when the image fails or there is no src.
boolean
Load immediately. Use it for images visible on first paint.
Also accepts every <img> attribute.

Rating

A row of stars. The display and the control are the same stars, so a score looks the same in a list and in a form. Fractions round to the nearest star.
number
required
The score, on the scale of max.
(value: number) => void
Makes it a control. Leave it out for read-only.
number
default:"5"
Number of stars.
number
default:"16"
Star size in px.
string
Color of a lit star.
string
Color of an unlit star. Defaults to the border token.
string
Spoken label of a read-only rating. Defaults to “4.5 / 5”.

Eyebrow

The small, spaced-out capitals above a title or next to a value.
Props: color? (defaults to muted text), size? (default 9.5), and any <div> attribute.

BlockedList

The accounts the viewer has blocked, each with an unblock button. Renders nothing while empty. Fetch the list and unblock with your own calls.
{ username, name?, picture? }[]
required
The blocked accounts.
(username: string) => void
required
Called when the user taps unblock.
string | null
The username whose unblock is in progress.
object
Text overrides: heading, unblock.