Search documentation

Search pages, components, blocks, styles and colours.

Get started
Skip to content

Status Bar

PreviousNext

Uptime as one pill per day, coloured by status, with the uptime share and a legend.

System status
Acme Inc, the last 60 days
APIOperational
Sep 1795% uptimeNov 15
API status, the last 60 days
StatusNote
Thu, Sep 17Operational
Fri, Sep 18Operational
Sat, Sep 19Operational
Sun, Sep 20Operational
Mon, Sep 21Operational
Tue, Sep 22Operational
Wed, Sep 23Operational
Thu, Sep 24Operational
Fri, Sep 25Operational
Sat, Sep 26Operational
Sun, Sep 27Operational
Mon, Sep 28Operational
Tue, Sep 29DegradedSlow responses from the EU region
Wed, Sep 30Operational
Thu, Oct 1Operational
Fri, Oct 2Operational
Sat, Oct 3Operational
Sun, Oct 4Operational
Mon, Oct 5Operational
Tue, Oct 6Operational
Wed, Oct 7Operational
Thu, Oct 8Operational
Fri, Oct 9Operational
Sat, Oct 10Operational
Sun, Oct 11Operational
Mon, Oct 12Operational
Tue, Oct 13Operational
Wed, Oct 14Operational
Thu, Oct 15Operational
Fri, Oct 16Operational
Sat, Oct 17Operational
Sun, Oct 18OutageDatabase failover, 42 minutes
Mon, Oct 19DegradedRecovering from the failover
Tue, Oct 20Operational
Wed, Oct 21Operational
Thu, Oct 22Operational
Fri, Oct 23Operational
Sat, Oct 24Operational
Sun, Oct 25Operational
Mon, Oct 26Operational
Tue, Oct 27Operational
Wed, Oct 28Operational
Thu, Oct 29Operational
Fri, Oct 30Operational
Sat, Oct 31Operational
Sun, Nov 1Operational
Mon, Nov 2Operational
Tue, Nov 3Operational
Wed, Nov 4Operational
Thu, Nov 5Operational
Fri, Nov 6Operational
Sat, Nov 7Operational
Sun, Nov 8Operational
Mon, Nov 9Operational
Tue, Nov 10Operational
Wed, Nov 11Operational
Thu, Nov 12Operational
Fri, Nov 13Operational
Sat, Nov 14Operational
Sun, Nov 15Operational
WebsiteOperational
Sep 1795% uptimeNov 15
  • Operational
  • Degraded
  • Outage
Website status, the last 60 days
StatusNote
Thu, Sep 17Operational
Fri, Sep 18Operational
Sat, Sep 19Operational
Sun, Sep 20Operational
Mon, Sep 21Operational
Tue, Sep 22Operational
Wed, Sep 23Operational
Thu, Sep 24Operational
Fri, Sep 25Operational
Sat, Sep 26Operational
Sun, Sep 27Operational
Mon, Sep 28Operational
Tue, Sep 29Operational
Wed, Sep 30Operational
Thu, Oct 1Operational
Fri, Oct 2Operational
Sat, Oct 3Operational
Sun, Oct 4Operational
Mon, Oct 5Operational
Tue, Oct 6Operational
Wed, Oct 7OutageCDN outage in two regions, 25 minutes
Thu, Oct 8Operational
Fri, Oct 9Operational
Sat, Oct 10Operational
Sun, Oct 11Operational
Mon, Oct 12Operational
Tue, Oct 13Operational
Wed, Oct 14Operational
Thu, Oct 15Operational
Fri, Oct 16Operational
Sat, Oct 17Operational
Sun, Oct 18Operational
Mon, Oct 19Operational
Tue, Oct 20Operational
Wed, Oct 21Operational
Thu, Oct 22Operational
Fri, Oct 23Operational
Sat, Oct 24Operational
Sun, Oct 25Operational
Mon, Oct 26Operational
Tue, Oct 27Operational
Wed, Oct 28Operational
Thu, Oct 29Operational
Fri, Oct 30Operational
Sat, Oct 31DegradedImages loading slowly
Sun, Nov 1Operational
Mon, Nov 2Operational
Tue, Nov 3Operational
Wed, Nov 4Operational
Thu, Nov 5Operational
Fri, Nov 6Operational
Sat, Nov 7Operational
Sun, Nov 8Operational
Mon, Nov 9Operational
Tue, Nov 10Operational
Wed, Nov 11Operational
Thu, Nov 12Operational
Fri, Nov 13Operational
Sat, Nov 14DegradedSearch results delayed
Sun, Nov 15Operational

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.

Aug 2893.8% uptimeNov 15
  • Operational
  • Degraded
  • Outage
  • Planned maintenance
Payments status, the last 90 days
StatusNote
Tue, Aug 18No data
Wed, Aug 19No data
Thu, Aug 20Operational
Fri, Aug 21Operational
Sat, Aug 22Operational
Sun, Aug 23Operational
Mon, Aug 24Operational
Tue, Aug 25Operational
Wed, Aug 26Planned maintenanceDatabase upgrade to version 17
Thu, Aug 27Operational
Fri, Aug 28Operational
Sat, Aug 29Operational
Sun, Aug 30Operational
Mon, Aug 31Operational
Tue, Sep 1Operational
Wed, Sep 2Operational
Thu, Sep 3Operational
Fri, Sep 4Operational
Sat, Sep 5Operational
Sun, Sep 6Operational
Mon, Sep 7Operational
Tue, Sep 8DegradedWebhook deliveries delayed
Wed, Sep 9Operational
Thu, Sep 10Operational
Fri, Sep 11Operational
Sat, Sep 12Operational
Sun, Sep 13Operational
Mon, Sep 14Operational
Tue, Sep 15Operational
Wed, Sep 16Operational
Thu, Sep 17Operational
Fri, Sep 18Operational
Sat, Sep 19Operational
Sun, Sep 20Operational
Mon, Sep 21Operational
Tue, Sep 22Operational
Wed, Sep 23Operational
Thu, Sep 24Planned maintenanceNetwork switch replacement
Fri, Sep 25Operational
Sat, Sep 26Operational
Sun, Sep 27Operational
Mon, Sep 28Operational
Tue, Sep 29Operational
Wed, Sep 30Operational
Thu, Oct 1Operational
Fri, Oct 2Operational
Sat, Oct 3Operational
Sun, Oct 4Operational
Mon, Oct 5Operational
Tue, Oct 6Operational
Wed, Oct 7Operational
Thu, Oct 8Operational
Fri, Oct 9OutagePayments unavailable for 18 minutes
Sat, Oct 10Operational
Sun, Oct 11Operational
Mon, Oct 12Operational
Tue, Oct 13Operational
Wed, Oct 14Operational
Thu, Oct 15Operational
Fri, Oct 16Operational
Sat, Oct 17Operational
Sun, Oct 18Operational
Mon, Oct 19Operational
Tue, Oct 20Operational
Wed, Oct 21Operational
Thu, Oct 22Operational
Fri, Oct 23Planned maintenanceStorage migration, read only
Sat, Oct 24Operational
Sun, Oct 25Operational
Mon, Oct 26Operational
Tue, Oct 27Operational
Wed, Oct 28Operational
Thu, Oct 29Operational
Fri, Oct 30Operational
Sat, Oct 31Operational
Sun, Nov 1Operational
Mon, Nov 2Operational
Tue, Nov 3Operational
Wed, Nov 4Operational
Thu, Nov 5DegradedHigher error rates on exports
Fri, Nov 6Operational
Sat, Nov 7Operational
Sun, Nov 8Operational
Mon, Nov 9Operational
Tue, Nov 10Operational
Wed, Nov 11Operational
Thu, Nov 12Operational
Fri, Nov 13Operational
Sat, Nov 14Operational
Sun, Nov 15Operational

Changing the data

A pill whose status changes crossfades to its new colour; pills for new days fade in and the rest move along.

Oct 17100% uptimeNov 15
  • Operational
Background jobs status, the last 30 days
StatusNote
Sat, Oct 17Operational
Sun, Oct 18Operational
Mon, Oct 19Operational
Tue, Oct 20Operational
Wed, Oct 21Operational
Thu, Oct 22Operational
Fri, Oct 23Operational
Sat, Oct 24Operational
Sun, Oct 25Operational
Mon, Oct 26Operational
Tue, Oct 27Operational
Wed, Oct 28Operational
Thu, Oct 29Operational
Fri, Oct 30Operational
Sat, Oct 31Operational
Sun, Nov 1Operational
Mon, Nov 2Operational
Tue, Nov 3Operational
Wed, Nov 4Operational
Thu, Nov 5Operational
Fri, Nov 6Operational
Sat, Nov 7Operational
Sun, Nov 8Operational
Mon, Nov 9Operational
Tue, Nov 10Operational
Wed, Nov 11Operational
Thu, Nov 12Operational
Fri, Nov 13Operational
Sat, Nov 14Operational
Sun, Nov 15Operational

Colours

Statuses use the status roles, so the bar reads the same as alerts and badges.

StatusLabelColour
operationalOperationalsuccess
degradedDegradedwarning
outageOutagedestructive
maintenanceMaintenanceinfo
noneNo datamuted-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 reveal role, once per mount.
  • Morph: when data, statusKey or statuses change, a pill whose status changed crossfades to its new colour on the move role, 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 glide role, 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>.

PropTypeDefault
dataTDatum[]required
indexkeyof TDatumrequired
labelstringrequired: the accessible name
statusKeystring"status"
noteKeystring-
statusesStatusConfigthe statuses above
formatIndex(value: string, datum: TDatum) => stringdates as Nov 14
legendbooleantrue
tooltipbooleantrue
animatebooleantrue
loadingbooleanfalse
emptyReactNode"No data"
onActiveChange(active: ChartActive<TDatum> | null) => void-

StatusConfig

A record of status keys to:

FieldTypeDefault
labelstringrequired
colorChartColorthe default's role, or the next palette slot

Data attributes

AttributeElementPresent when
data-slot="status-bar"rootalways
data-loadingrootloading is true
data-slot="chart-plot"the pillsalways
data-slot="status-bar-pill"a pillalways; data-status, data-active, data-dimmed
data-slot="status-bar-footer"dates, uptimethere is data
data-slot="status-bar-legend"the legendlegend is on
data-slot="chart-tooltip"the tooltipa 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.
  • loading sets aria-busy on the root and dims the bar until new data arrives.