Uptime as one pill per day, coloured by status, with the uptime share and a legend.
| Status | Note | |
|---|---|---|
| Thu, Sep 17 | Operational | |
| Fri, Sep 18 | Operational | |
| Sat, Sep 19 | Operational | |
| Sun, Sep 20 | Operational | |
| Mon, Sep 21 | Operational | |
| Tue, Sep 22 | Operational | |
| Wed, Sep 23 | Operational | |
| Thu, Sep 24 | Operational | |
| Fri, Sep 25 | Operational | |
| Sat, Sep 26 | Operational | |
| Sun, Sep 27 | Operational | |
| Mon, Sep 28 | Operational | |
| Tue, Sep 29 | Degraded | Slow responses from the EU region |
| Wed, Sep 30 | Operational | |
| Thu, Oct 1 | Operational | |
| Fri, Oct 2 | Operational | |
| Sat, Oct 3 | Operational | |
| Sun, Oct 4 | Operational | |
| Mon, Oct 5 | Operational | |
| Tue, Oct 6 | Operational | |
| Wed, Oct 7 | Operational | |
| Thu, Oct 8 | Operational | |
| Fri, Oct 9 | Operational | |
| Sat, Oct 10 | Operational | |
| Sun, Oct 11 | Operational | |
| Mon, Oct 12 | Operational | |
| Tue, Oct 13 | Operational | |
| Wed, Oct 14 | Operational | |
| Thu, Oct 15 | Operational | |
| Fri, Oct 16 | Operational | |
| Sat, Oct 17 | Operational | |
| Sun, Oct 18 | Outage | Database failover, 42 minutes |
| Mon, Oct 19 | Degraded | Recovering from the failover |
| Tue, Oct 20 | Operational | |
| Wed, Oct 21 | Operational | |
| Thu, Oct 22 | Operational | |
| Fri, Oct 23 | Operational | |
| Sat, Oct 24 | Operational | |
| Sun, Oct 25 | Operational | |
| Mon, Oct 26 | Operational | |
| Tue, Oct 27 | Operational | |
| Wed, Oct 28 | Operational | |
| Thu, Oct 29 | Operational | |
| Fri, Oct 30 | Operational | |
| Sat, Oct 31 | Operational | |
| Sun, Nov 1 | Operational | |
| Mon, Nov 2 | Operational | |
| Tue, Nov 3 | Operational | |
| Wed, Nov 4 | Operational | |
| Thu, Nov 5 | Operational | |
| Fri, Nov 6 | Operational | |
| Sat, Nov 7 | Operational | |
| Sun, Nov 8 | Operational | |
| Mon, Nov 9 | Operational | |
| Tue, Nov 10 | Operational | |
| Wed, Nov 11 | Operational | |
| Thu, Nov 12 | Operational | |
| Fri, Nov 13 | Operational | |
| Sat, Nov 14 | Operational | |
| Sun, Nov 15 | Operational |
- Operational
- Degraded
- Outage
| Status | Note | |
|---|---|---|
| Thu, Sep 17 | Operational | |
| Fri, Sep 18 | Operational | |
| Sat, Sep 19 | Operational | |
| Sun, Sep 20 | Operational | |
| Mon, Sep 21 | Operational | |
| Tue, Sep 22 | Operational | |
| Wed, Sep 23 | Operational | |
| Thu, Sep 24 | Operational | |
| Fri, Sep 25 | Operational | |
| Sat, Sep 26 | Operational | |
| Sun, Sep 27 | Operational | |
| Mon, Sep 28 | Operational | |
| Tue, Sep 29 | Operational | |
| Wed, Sep 30 | Operational | |
| Thu, Oct 1 | Operational | |
| Fri, Oct 2 | Operational | |
| Sat, Oct 3 | Operational | |
| Sun, Oct 4 | Operational | |
| Mon, Oct 5 | Operational | |
| Tue, Oct 6 | Operational | |
| Wed, Oct 7 | Outage | CDN outage in two regions, 25 minutes |
| Thu, Oct 8 | Operational | |
| Fri, Oct 9 | Operational | |
| Sat, Oct 10 | Operational | |
| Sun, Oct 11 | Operational | |
| Mon, Oct 12 | Operational | |
| Tue, Oct 13 | Operational | |
| Wed, Oct 14 | Operational | |
| Thu, Oct 15 | Operational | |
| Fri, Oct 16 | Operational | |
| Sat, Oct 17 | Operational | |
| Sun, Oct 18 | Operational | |
| Mon, Oct 19 | Operational | |
| Tue, Oct 20 | Operational | |
| Wed, Oct 21 | Operational | |
| Thu, Oct 22 | Operational | |
| Fri, Oct 23 | Operational | |
| Sat, Oct 24 | Operational | |
| Sun, Oct 25 | Operational | |
| Mon, Oct 26 | Operational | |
| Tue, Oct 27 | Operational | |
| Wed, Oct 28 | Operational | |
| Thu, Oct 29 | Operational | |
| Fri, Oct 30 | Operational | |
| Sat, Oct 31 | Degraded | Images loading slowly |
| Sun, Nov 1 | Operational | |
| Mon, Nov 2 | Operational | |
| Tue, Nov 3 | Operational | |
| Wed, Nov 4 | Operational | |
| Thu, Nov 5 | Operational | |
| Fri, Nov 6 | Operational | |
| Sat, Nov 7 | Operational | |
| Sun, Nov 8 | Operational | |
| Mon, Nov 9 | Operational | |
| Tue, Nov 10 | Operational | |
| Wed, Nov 11 | Operational | |
| Thu, Nov 12 | Operational | |
| Fri, Nov 13 | Operational | |
| Sat, Nov 14 | Degraded | Search results delayed |
| Sun, Nov 15 | Operational |
Give it rows with a day (or any period) and a status. Each row is a tall pill, coloured by its status, and the pills fill the width with a small gap. Under them sit the first day, the uptime share and the last day, then a legend that names every status shown, so colour never carries a status alone.
Point at a pill, drag a finger along the bar or tab to it and use the arrow keys: the pill lifts, the others dim a little and a tooltip gives the day, its status and its note. Pills rise in a wave from the start the first time the bar is on screen, and a pill whose status changes crossfades to its new colour.
Status Bar is part of the Fabricator style. It's drawn in SVG, so the same component ships for every base, and its layout comes from the same model as the React Native version.
Installation#
bunx --bun fabricator-ui@latest add status-bar
Usage#
import { StatusBar } from "@/components/ui/status-bar"const data = [
{ date: "2026-11-13", status: "operational" },
{ date: "2026-11-14", status: "degraded", note: "Slow responses" },
{ date: "2026-11-15", status: "operational" },
]
<StatusBar data={data} index="date" noteKey="note" label="API status" />index names the field for each pill: an ISO date string or a Date reads as a day ("Nov 14", "Sat, Nov 14" in the tooltip), anything else as a label as it is. Days are calendar days in UTC, so a page rendered on a server matches the browser. formatIndex writes them your way.
The status comes from statusKey ("status" by default). A row with no status is a faint "No data" pill. The uptime share counts the operational days among the days with data. The pills are about 32px tall, from the density, and narrow as days are added; once they reach 4px, only the latest days that fit are shown, and the dates and the uptime describe those.
Examples#
Notes and renamed statuses#
noteKey names a field whose text shows in the tooltip, for what happened that day. statuses renames or recolours a status, or adds one: { maintenance: { label: "Planned maintenance" } }. Rename the "No data" pill through the none key.
- Operational
- Degraded
- Outage
- Planned maintenance
| Status | Note | |
|---|---|---|
| Tue, Aug 18 | No data | |
| Wed, Aug 19 | No data | |
| Thu, Aug 20 | Operational | |
| Fri, Aug 21 | Operational | |
| Sat, Aug 22 | Operational | |
| Sun, Aug 23 | Operational | |
| Mon, Aug 24 | Operational | |
| Tue, Aug 25 | Operational | |
| Wed, Aug 26 | Planned maintenance | Database upgrade to version 17 |
| Thu, Aug 27 | Operational | |
| Fri, Aug 28 | Operational | |
| Sat, Aug 29 | Operational | |
| Sun, Aug 30 | Operational | |
| Mon, Aug 31 | Operational | |
| Tue, Sep 1 | Operational | |
| Wed, Sep 2 | Operational | |
| Thu, Sep 3 | Operational | |
| Fri, Sep 4 | Operational | |
| Sat, Sep 5 | Operational | |
| Sun, Sep 6 | Operational | |
| Mon, Sep 7 | Operational | |
| Tue, Sep 8 | Degraded | Webhook deliveries delayed |
| Wed, Sep 9 | Operational | |
| Thu, Sep 10 | Operational | |
| Fri, Sep 11 | Operational | |
| Sat, Sep 12 | Operational | |
| Sun, Sep 13 | Operational | |
| Mon, Sep 14 | Operational | |
| Tue, Sep 15 | Operational | |
| Wed, Sep 16 | Operational | |
| Thu, Sep 17 | Operational | |
| Fri, Sep 18 | Operational | |
| Sat, Sep 19 | Operational | |
| Sun, Sep 20 | Operational | |
| Mon, Sep 21 | Operational | |
| Tue, Sep 22 | Operational | |
| Wed, Sep 23 | Operational | |
| Thu, Sep 24 | Planned maintenance | Network switch replacement |
| Fri, Sep 25 | Operational | |
| Sat, Sep 26 | Operational | |
| Sun, Sep 27 | Operational | |
| Mon, Sep 28 | Operational | |
| Tue, Sep 29 | Operational | |
| Wed, Sep 30 | Operational | |
| Thu, Oct 1 | Operational | |
| Fri, Oct 2 | Operational | |
| Sat, Oct 3 | Operational | |
| Sun, Oct 4 | Operational | |
| Mon, Oct 5 | Operational | |
| Tue, Oct 6 | Operational | |
| Wed, Oct 7 | Operational | |
| Thu, Oct 8 | Operational | |
| Fri, Oct 9 | Outage | Payments unavailable for 18 minutes |
| Sat, Oct 10 | Operational | |
| Sun, Oct 11 | Operational | |
| Mon, Oct 12 | Operational | |
| Tue, Oct 13 | Operational | |
| Wed, Oct 14 | Operational | |
| Thu, Oct 15 | Operational | |
| Fri, Oct 16 | Operational | |
| Sat, Oct 17 | Operational | |
| Sun, Oct 18 | Operational | |
| Mon, Oct 19 | Operational | |
| Tue, Oct 20 | Operational | |
| Wed, Oct 21 | Operational | |
| Thu, Oct 22 | Operational | |
| Fri, Oct 23 | Planned maintenance | Storage migration, read only |
| Sat, Oct 24 | Operational | |
| Sun, Oct 25 | Operational | |
| Mon, Oct 26 | Operational | |
| Tue, Oct 27 | Operational | |
| Wed, Oct 28 | Operational | |
| Thu, Oct 29 | Operational | |
| Fri, Oct 30 | Operational | |
| Sat, Oct 31 | Operational | |
| Sun, Nov 1 | Operational | |
| Mon, Nov 2 | Operational | |
| Tue, Nov 3 | Operational | |
| Wed, Nov 4 | Operational | |
| Thu, Nov 5 | Degraded | Higher error rates on exports |
| Fri, Nov 6 | Operational | |
| Sat, Nov 7 | Operational | |
| Sun, Nov 8 | Operational | |
| Mon, Nov 9 | Operational | |
| Tue, Nov 10 | Operational | |
| Wed, Nov 11 | Operational | |
| Thu, Nov 12 | Operational | |
| Fri, Nov 13 | Operational | |
| Sat, Nov 14 | Operational | |
| Sun, Nov 15 | Operational |
Changing the data#
A pill whose status changes crossfades to its new colour; pills for new days fade in and the rest move along.
- Operational
| Status | Note | |
|---|---|---|
| Sat, Oct 17 | Operational | |
| Sun, Oct 18 | Operational | |
| Mon, Oct 19 | Operational | |
| Tue, Oct 20 | Operational | |
| Wed, Oct 21 | Operational | |
| Thu, Oct 22 | Operational | |
| Fri, Oct 23 | Operational | |
| Sat, Oct 24 | Operational | |
| Sun, Oct 25 | Operational | |
| Mon, Oct 26 | Operational | |
| Tue, Oct 27 | Operational | |
| Wed, Oct 28 | Operational | |
| Thu, Oct 29 | Operational | |
| Fri, Oct 30 | Operational | |
| Sat, Oct 31 | Operational | |
| Sun, Nov 1 | Operational | |
| Mon, Nov 2 | Operational | |
| Tue, Nov 3 | Operational | |
| Wed, Nov 4 | Operational | |
| Thu, Nov 5 | Operational | |
| Fri, Nov 6 | Operational | |
| Sat, Nov 7 | Operational | |
| Sun, Nov 8 | Operational | |
| Mon, Nov 9 | Operational | |
| Tue, Nov 10 | Operational | |
| Wed, Nov 11 | Operational | |
| Thu, Nov 12 | Operational | |
| Fri, Nov 13 | Operational | |
| Sat, Nov 14 | Operational | |
| Sun, Nov 15 | Operational |
Colours#
Statuses use the status roles, so the bar reads the same as alerts and badges.
| Status | Label | Colour |
|---|---|---|
operational | Operational | success |
degraded | Degraded | warning |
outage | Outage | destructive |
maintenance | Maintenance | info |
none | No data | muted-foreground at 30% |
Give a status its own colour with color in statuses: a role, a palette slot, a CSS variable or any CSS colour. Statuses you add without a colour take palette slots in order. The legend and the tooltip name every status, so a reader never has to tell two by colour.
Motion#
- Rise: the first time the bar scrolls into view, pills rise and fade in as a wave from the start, on the
revealrole, once per mount. - Morph: when
data,statusKeyorstatuseschange, a pill whose status changed crossfades to its new colour on themoverole, and pills move to their new places. New days fade in; days that left fade out. - Glide: the pill under the pointer lifts and the others dim on the
gliderole, and the tooltip glides with it.
All three follow the motion speed of the region they sit in. Reduce Motion and the instant speed draw the bar at once and drop the movement; animate={false} does the same for one bar.
API Reference#
StatusBar#
All other props go to the root <div>.
| Prop | Type | Default |
|---|---|---|
data | TDatum[] | required |
index | keyof TDatum | required |
label | string | required: the accessible name |
statusKey | string | "status" |
noteKey | string | - |
statuses | StatusConfig | the statuses above |
formatIndex | (value: string, datum: TDatum) => string | dates as Nov 14 |
legend | boolean | true |
tooltip | boolean | true |
animate | boolean | true |
loading | boolean | false |
empty | ReactNode | "No data" |
onActiveChange | (active: ChartActive<TDatum> | null) => void | - |
StatusConfig#
A record of status keys to:
| Field | Type | Default |
|---|---|---|
label | string | required |
color | ChartColor | the default's role, or the next palette slot |
Data attributes#
| Attribute | Element | Present when |
|---|---|---|
data-slot="status-bar" | root | always |
data-loading | root | loading is true |
data-slot="chart-plot" | the pills | always |
data-slot="status-bar-pill" | a pill | always; data-status, data-active, data-dimmed |
data-slot="status-bar-footer" | dates, uptime | there is data |
data-slot="status-bar-legend" | the legend | legend is on |
data-slot="chart-tooltip" | the tooltip | a pill is inspected |
Accessibility#
- The bar is a slider named after
label("API status: inspect values"). Tab to it, then Left and Right step through the days, Home and End jump to the first and last, and Escape lets go. Its value text reads the tooltip: the day, its status and its note. - Every day, shown or not, is also in a table hidden from sight with its status and note.
- The legend and the tooltip name each status, so no status is told apart by colour alone.
loadingsetsaria-busyon the root and dims the bar until new data arrives.