---
title: "Uptime bars"
description: "Uptime per component over 30 or 90 days: a status word, the uptime figure and a bar a day in five levels, with a tooltip on each day."
plan: Pro
docs: https://ui.edbn.me/docs/blocks/uptime-bars
---

# Uptime bars

Uptime per component over 30 or 90 days: a status word, the uptime figure and a bar a day in five levels, with a tooltip on each day.

Each row names a part of the product, says how it's running now in a word with an icon, and gives its uptime for the period, counting outages in full and major incidents at 30%. Under it, one bar per day takes the worst level that day: ink for no incidents, the warning token for minor, destructive for an outage and a mix of the two for major, or gray before the component was watched. A legend sits under the rows. The bars are one tab stop: arrow keys move along the days and between components, Home and End jump to the ends, and every bar's name says the date and what happened. Hovering or focusing a bar shows a tooltip with the date, each incident and how long it lasted; a click or tap pins the same details under the bars, since tooltips don't open on touch. A toggle switches between 30 and 90 days. Days come from the today prop, never the clock, so the server and the browser draw the same bars; in a narrow card ninety days sit a hairline apart instead of as rounded bars.

A Pro block built on Base UI and Tailwind CSS v4.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/uptime-bars
```

## Dependencies
- npm: lucide-react@^1.33.0
- edbn: edbn-base, button, card, toggle-group, tooltip

## Source

The source is part of Pro (https://ui.edbn.me/pricing). The install above adds it to the project, ready to edit.

## More stats blocks

All 4, with install commands: https://ui.edbn.me/docs/blocks/stats (Markdown: https://ui.edbn.me/docs/blocks/stats.md)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
