Status bar
A row of period blocks coloured by service status.
OperationalAPI uptime, last 30 days96.67% uptime
27 operational · 2 degraded · 1 outage
| Period | Status | Detail |
|---|---|---|
| Day 1 | Operational | |
| Day 2 | Operational | |
| Day 3 | Operational | |
| Day 4 | Operational | |
| Day 5 | Operational | |
| Day 6 | Operational | |
| Day 7 | Operational | |
| Day 8 | Outage | |
| Day 9 | Operational | |
| Day 10 | Operational | |
| Day 11 | Operational | |
| Day 12 | Operational | |
| Day 13 | Operational | |
| Day 14 | Operational | |
| Day 15 | Operational | |
| Day 16 | Operational | |
| Day 17 | Operational | |
| Day 18 | Operational | |
| Day 19 | Degraded | |
| Day 20 | Degraded | |
| Day 21 | Operational | |
| Day 22 | Operational | |
| Day 23 | Operational | |
| Day 24 | Operational | |
| Day 25 | Operational | |
| Day 26 | Operational | |
| Day 27 | Operational | |
| Day 28 | Operational | |
| Day 29 | Operational | |
| Day 30 | Operational |
When to use
- Uptime history on a status page.
- Any timeline of discrete states.
When not to use
- Continuous values; use a line chart.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/status-bar
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
StatusBar
7 props
PropTypeDefault
label *string—
data *readonly StatusPeriod[]—
startLabelstring—
endLabelstring—
loadingboolean—
errorstring—
classNamestring—
statusUptime
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes group and status semantics, with aria-label, aria-busy and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/status-bar.mdThe index of every part is at /llms.txt.