Updated
Uptime Bar
ProCustomize
Days90
Installation
ProUptime Bar is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/uptime-bar
Loading your installation…
Usage
import { UptimeBar } from "@/components/uibrik/uptime-bar/uptime-bar";<UptimeBar title="System status" days={90} showLegend // services={[{ name: "…", days: [{ date: "…", status: "operational" }] }]}/>Where to use Uptime Bar
Public status pages
A tick for every day shows reliability at a glance.
Pairs with Status Dashboard
Service health
Lifting any day shows what happened during incidents.
SLA reports
A clear history supports uptime commitments.
Props
UptimeBar- title
- Type string
- "System status"
- Names the page.
- days
- Type number
- 90
- Most days to show; fewer fit on narrow screens.
- showLegend
- Type boolean
- true
- Names the four states under the card.
- services
- Type { name: string; days: { date: string; status: "operational" | "degraded" | "outage" | "none"; note?: string; downtime?: number }[] }[]
- –
- One row per service, each with one entry per day, oldest first. Downtime is in minutes.
- className
- Type string
- –
- Classes for the outer shell.