Content
- The title under it says what would be here: “No intros yet”, not “Nothing here”.
- One line on how to get some, then one action.
Bridge's drawings for empty states: small scenes of cards, faces and one blue button.
import { … } from "@brdgapp/ui/components/illustration"Illustration is one of Bridge's thirteen drawings for empty states: a tiny scene made of Bridge's own cards, faces and lines, with one blue button or mark, on a patch of the dot grid. Usually you pass its name to DataState's empty state. Every color is a token, so it follows dark mode by itself. The usual mistake is using a drawing to decorate a card that already has content.
illustration.search, filters), or a cleared queue (done).error).The look comes from props
A component's appearance comes only from its own options (variant, size, color). className on a package component is for layout (mt-4, shrink-0, w-full), never for font size, color, padding, radius or hover. If the look needs a className, the component or the chosen option is wrong: fix that instead.
Dot grid. A rounded patch of the page's dot grid behind the scene.
Scene. Cards, faces and lines for text, in tokens. One subject.
Blue mark. The one blue thing: a button, a slot, a tick.
Pass the drawing's name as `illustration`. DataState sets the size and the spacing.
No lists yet
Group people you're tracking, like founders to meet this quarter.
Small inside a panel, with a title that names the search.
No one matches “Saltmarsh”
Check the spelling, or search by company.
Which one goes with which empty state is on the Illustration foundation page.
States not written yet.
sm 80px, md 120px (default), lg 160px.Do
Pick the drawing for what's missing:intros for no intros.Don't
Pick by mood, or use one drawing for everything.Do
Usesm inside a card or side panel.Don't
Put a 120px drawing in a small card, pushing the title out of sight.title makes it an image with that name. Use it only when the picture says something the words don't.Illustration
One drawing.
| Prop | Type | Default | Description |
|---|---|---|---|
name | "people" | "intros" | "companies" | "messages" | "activity" | "meetings" | "lists" | "jobs" | "connect" | "search" | "filters" | "done" | "error" | — | Which drawing. ILLUSTRATION_NAMES lists them. |
size | "sm" | "md" | "lg" | "md" | 80, 120 or 160px wide. |
title | string | — | Makes it an image with this name. Usually leave it off. |
className | string | — | Layout only. |
What it's built from and where it's used, read from the code. When you change it, check these too.