Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Uptime Bar

ProNew

A service's history as one bar per day, with the day's date and incident shown in a line beneath as you point or use the arrow keys.

Installation

pnpm dlx shadcn@latest add @viewport/uptime-bar

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
name*string

The service's name.

—
days*UptimeDay[]

One entry per day, oldest first.

—
classNamestring—

Accessibility

  • A slider over the days: arrow keys, Home and End read each day's date and status.
  • The detail line sits under the bars, so it works on touch and never covers content.
  • Status is stated in words; uptime is computed from days with data.