Segments draw themselves in on scroll; hover, tap or tab to one to lift it and read its value and share in the middle.
A status-page uptime bar: one slim bar per day, coloured by how it went, with each day's uptime and incidents on hover.
Customize
Usage
import { UptimeBar, type UptimeDay } from "@/components/motionkit/uptime-bar";
// one entry per day, oldest first, from your monitoring
const days: UptimeDay[] = [
{ date: "2026-11-07", status: "up" },
{ date: "2026-11-08", status: "down", uptime: 98.47, note: "Elevated error rates on writes for 14 minutes." },
{ date: "2026-11-09", status: "up" },
// ...
];
<UptimeBar label="API" days={days} />Motion
The exact curves this component runs, plotted with Motion's own maths.
Bars rise
Scrolls into view
Tooltip follows
Hover or arrow keys
Status pages, developer platform dashboards, API and infrastructure landing pages, and anywhere reliability is part of the pitch.
Each day is a flex item in one row, so ninety bars share the width evenly at any size, and each is coloured by its status. As the row scrolls into view, every bar scales up from its base a few milliseconds after the one before. Hovering a bar, or moving through the days with the arrow keys, sets the active day: the others dim, and a tooltip springs along to sit above it, clamped so it never overhangs the ends. Overall uptime is the average of the days with data.
| Prop | Type | Default | Description |
|---|---|---|---|
| days | UptimeDay[] | — | One entry per day, oldest first: date, status (up, degraded, down or none), and optional uptime and note. |
| label | string | "API" | The service's name. |
| colors | Partial<Record<UptimeStatus, string>> | — | Colours for each status. |
| locale | string | "en-GB" | BCP 47 locale for the dates. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/uptime-bar. It saves the file to components/motionkit and installs its dependencies.
Uptime Bar is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, the bars appear at full height and the tooltip moves without sliding.
From you: pass one entry per day with its status, and optionally its uptime and a note. Most monitoring services can export daily summaries, or you can build them from your own incident log.
Segments draw themselves in on scroll; hover, tap or tab to one to lift it and read its value and share in the middle.
A responsive area chart that draws itself in, then follows the pointer, a finger or the arrow keys with a crosshair and tooltip.
A live status indicator for services and deploys: the dot blends between colours and pulses softly only when something needs attention.
API
Operational
The live preview is free to explore. Plus unlocks the source for Uptime Bar and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { UptimeBar, type UptimeDay } from "@/components/motionkit/uptime-bar";
// one entry per day, oldest first, from your monitoring
const days: UptimeDay[] = [
{ date: "2026-11-07", status: "up" },
{ date: "2026-11-08", status: "down", uptime: 98.47, note: "Elevated error rates on writes for 14 minutes." },
{ date: "2026-11-09", status: "up" },
// ...
];
<UptimeBar label="API" days={days} />Motion
The exact curves this component runs, plotted with Motion's own maths.
Bars rise
Scrolls into view
Tooltip follows
Hover or arrow keys
API
Operational