Uptime barPro
Daily status bars with uptime percentage and incident tooltips.
API98.89% uptime
45 days agoToday
Webhooks96.67% uptime
45 days agoToday
When to use
- Status pages and service health over 30–90 days.
When not to use
- Live latency: use a line chart.
Installation
Usage
Import it from @/components/ui/uptime-bar after installing.
example.tsx
import { UptimeBar } from "@/components/ui/uptime-bar";
export function Api({ days }: { days: { date: string; status: "up" | "degraded" | "down" | "none" }[] }) {
return <UptimeBar name="API" days={days} />;
}API reference
UptimeBar
One bar per day with an uptime percentage.
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | – | Service name. |
| days | { date; status; note? }[] | – | status: up, degraded, down or none. |
Accessibility
- role="img" with a summary; each bar has a label with date, status and note.
Motion
- Hovering a bar dims the others.
Responsive behavior
- Bars shrink to fit; show fewer days on phones.
Performance
- One element per day.
Notes for AI
- Use none for days before monitoring started.
This page as Markdown, for assistants and coding agents:
/components/uptime-bar/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt