Skip to content
caliper ui docs

Pro

Status bar

A row of period blocks coloured by service status.

Pro
pnpm dlx shadcn@latest add @caliper/status-bar

api.halden.io

99.82% uptime · one outage on 29 September

Operational
API uptime, last 30 days96.67% uptime

API uptime, last 30 days
PeriodStatusDetail
Day 1Operational
Day 2Operational
Day 3Operational
Day 4Operational
Day 5Operational
Day 6Operational
Day 7Operational
Day 8Outage
Day 9Operational
Day 10Operational
Day 11Operational
Day 12Operational
Day 13Operational
Day 14Operational
Day 15Operational
Day 16Operational
Day 17Operational
Day 18Operational
Day 19Degraded
Day 20Degraded
Day 21Operational
Day 22Operational
Day 23Operational
Day 24Operational
Day 25Operational
Day 26Operational
Day 27Operational
Day 28Operational
Day 29Operational
Day 30Operational
Installs components/ui/status-bar.tsxDepends on d3-shapeMotion shared motion tokens

When to use

Use it for

  • Uptime history on a status page.
  • Any timeline of discrete states.

Skip it when

  • 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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source. It is built from StatusBar and statusUptime.

example.tsx
import { StatusBar, statusUptime } from "@/components/ui/status-bar"

The worked example comes with Pro

The 34-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

StatusBar

component
PropTypeDefault
label *string—
data *readonly StatusPeriod[]—
startLabelstring—
endLabelstring—
loadingboolean—
errorstring—
classNamestring—

statusUptime

component

No props of its own; it accepts the native props of its root element.

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.

No custom key handling; Tab and the native activation keys do the work.

Motion

Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.

All Category charts examples