About
A status-page style bar showing one cell per day over a configurable range, colored green for operational and red for degraded days, with the overall uptime percentage.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Uptime Bar to your project and fits it to your theme.
Code
How Uptime Bar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { UptimeBar } from "@/components/ui/uptime-bar";
export default function UptimeBarDemo() {
return (
<div className="w-full max-w-xl space-y-5 rounded-xl border border-border bg-surface p-4">
<UptimeBar label="Dashboard" days={90} downtimes={[]} />
<UptimeBar label="Payments API" days={90} downtimes={[31]} />
<UptimeBar label="Webhooks" days={90} downtimes={[12, 13, 87]} />
</div>
);
}















