Uptime Bar
ProNewA 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
| Prop | Type | Default |
|---|---|---|
| name* | stringThe service's name. | — |
| days* | UptimeDay[]One entry per day, oldest first. | — |
| className | string | — |
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.