Tracker
newAn uptime strip of status blocks with tooltips.
api.acme.dev99.94% uptime
60 days agoToday
Installation
npx shadcn@latest add @blank/trackerUsage
import { Tracker } from "@/components/ui/tracker"<Tracker
aria-label="Uptime, last 30 days"
data={[
{ status: "success", tooltip: "Operational" },
{ status: "warning", tooltip: "Degraded performance" },
]}
/>Each block takes a status instead of a color class, so the strip follows the
theme. The strip is a list with one tab stop: arrow keys move between blocks,
Home and End jump to the ends, and the focused block shows its tooltip. A tap
opens it on touch screens. Give the strip an aria-label; each block is named
by its tooltip, or by label when the tooltip is not plain text.
Examples
Statuses
API Reference
Tracker
| Prop | Type | Default |
|---|---|---|
data | TrackerBlock[] | — |
hoverEffect | boolean | false |
TrackerBlock
| Field | Type | Default |
|---|---|---|
status | "success" | "warning" | "danger" | "info" | "brand" | "empty" | "empty" |
tooltip | ReactNode | — |
label | string | the tooltip text |
key | string | number | index |
className | string | — |