Gallery
Component gallery
baselineEvery component in @social-dashboard/ui — Catalyst's kit plus the few pieces it does not ship — in every state it has. Fixed content only: this page is the screenshot baseline.
Typography
Heading, subheading, body, strong, code and link, at their shipped sizes.
Heading — a page title
Subheading — a section title
Body text is zinc-500 with a zinc-950 emphasis, and links like this one carry the brand seed. Inline code reads as packages/ui/src/catalyst.
Badge
The kit's full colour ramp. Status colour is never the only signal — the text says it too.
Avatar
Initials or an image, square or round — the kit's two shapes at three sizes.
Notice · four tones
Ours, not the kit's: Catalyst's Alert is a modal dialog, so an inline banner has nothing to compose from.
Informational
Succeeded
Answered, with a caveat
Failed
Card and Section
The raised surface, and the titled block built on it.
Card
A ring, a radius and a surface colour — the same pair the kit's dialogs use.
Section
A card with a heading contract: title, optional note, content.
Content goes here.
Divider
Two weights: the default rule, and the soft one used inside dense panels.
Input, Textarea, Select
With a description, with an error, disabled, and read-only.
The description is associated automatically — no htmlFor to keep in sync.
Must be at least 3 characters.
Optional. Up to 400 characters.
Listbox and Combobox
The kit's two rich pickers: a styled listbox, and the same list with type-ahead filtering.
Holds a value and renders the chosen option in the button.
Same options, filtered as you type.
Checkbox, Radio, Switch
Grouped, described, checked, and disabled.
Table
Striped and dense, with the last column right-aligned and tabular figures so the digits line up.
| Name | Status | Owner | Value |
|---|---|---|---|
| nightly billing rollup | active | Ada Okonkwo | $12,400 |
| identity backfill | paused | Bruno Salas | $3,120 |
| webhook replay | failed | Chen Wei | $840 |
| quarterly export | archived | Dara Iqbal | $26,900 |
Pagination
Catalyst's link pager. The unavailable direction is a disabled control, not a greyed-out link.
Dialog · all three sizes, and Alert
Opens over the page; the trigger is the only client code here.
Drawer · sizes and footer actions
Slides in from the right edge.
Dropdown · anchored menu
Sections, headings, descriptions, shortcuts, a divider and a disabled item. Closed here; open state is proven in the browser suite.
Toast
Transient confirmation for something that already happened. Anything the user must act on is a Notice or a Dialog instead.
Skeletons
The blocks are aria-hidden inside one live region: “loading” is the message, not the shape of the boxes.
Page header
Eyebrow, title, status mark, description and actions.
Records
Records
240 totalA stable keyset list: narrow row projections, a fixed page size, and detail loaded only after a selection.
Stat
A KPI states its BASIS rather than a made-up delta.
Routed tabs
Each tab is a real URL — shareable, back-button-able, server-rendered.
Description list
Term and detail pairs — the shape every detail panel ends up needing.
- Identifier
rec_0a1- Status
- active
- Owner
- Ada Okonkwo
- Notes
- Runs at 02:00 UTC against the billing ledger.
Empty state
A real, successful, empty answer — never used for a failure.
Nothing in this view
No records match the current filter. The scope was read successfully — this is a real empty result, not a failed load.
Charts · ready
Thursday is null, not zero — an unobserved bucket breaks the line instead of inventing a floor.
Line · two series
Fixed legend order; each series carries a non-colour marker.
records · sum per day · UTC
- Created
- Failed
| Day | Created | Failed |
|---|---|---|
| Mon | 12 | 4 |
| Tue | 18 | 6 |
| Wed | 9 | 3 |
| Thu | not observed | not observed |
| Fri | 21 | 7 |
| Sat | 4 | 1 |
| Sun | 15 | 5 |
Bar · stacked
Same window, same basis as the line beside it.
records · sum per day · UTC
- Created
- Failed
| Day | Created | Failed |
|---|---|---|
| Mon | 12 | 4 |
| Tue | 18 | 6 |
| Wed | 9 | 3 |
| Thu | not observed | not observed |
| Fri | 21 | 7 |
| Sat | 4 | 1 |
| Sun | 15 | 5 |
Donut · top-N plus other
Truncation folds into an exact remainder; the total never moves.
records
- ingest42 (37.2%)
- billing31 (27.4%)
- identity18 (15.9%)
- reporting12 (10.6%)
- Other10 (8.8%)
| Category | Value |
|---|---|
| ingest | 42 |
| billing | 31 |
| identity | 18 |
| reporting | 12 |
| Other (2 categories) | 10 |
| Total | 113 |
Sparkline
Glance size — no axes, no legend, one accessible label.
| Bucket | Records created per day |
|---|---|
| Mon | 12 |
| Tue | 18 |
| Wed | 9 |
| Thu | not observed |
| Fri | 21 |
| Sat | 4 |
| Sun | 15 |
Charts · loading, error, empty, partial
Every non-ready state a chart can reach.
Loading
Skeleton holds the plot's own dimensions.
records · sum per day · UTC
Error with stale data
Retryable, and honest about how old the last good answer is.
records · sum per day · UTC
Could not load this chart
Upstream aggregate timed out. Last good answer was 12 min old.
Empty
The window WAS observed and held nothing — distinct from unavailable.
records · sum per day · UTC
Data unavailable
This window was not observed, so there is nothing to show. A zero here would be a guess, not a measurement.
Unavailable
Nothing in this window was collected, so no total is claimed.
records
Data unavailable
This window was not observed, so there is nothing to show. A zero here would be a guess, not a measurement.
Partial coverage
Answers, but says how much of the window it actually saw.
records · sum per day · UTC
- Created
- Failed
| Day | Created | Failed |
|---|---|---|
| Mon | 12 | 4 |
| Tue | 18 | 6 |
| Wed | 9 | 3 |
| Thu | not observed | not observed |
| Fri | 21 | 7 |
| Sat | 4 | 1 |
| Sun | 15 | 5 |
Sparkline · states
Loading, error and unavailable at glance size.