uibrik

Uptime Bar

New

Preview

Customize

Days90

Usage

import { UptimeBar } from "@/components/uibrik/uptime-bar/uptime-bar";

<UptimeBar />

Installation

npx shadcn@latest add https://uibrik.com/r/uptime-bar.json
Adds the files to components/uibrik/uptime-bar and installs @number-flow/react, @tabler/icons-react, motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/uptime-bar.

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.