UptimeBar

A status history strip, one bar per day. Bars rise in a wave; point at one and a card names the day and how it went. Data.

Open playground
API99.64% uptime
Day 1Day 30

About

UptimeBar is a React component in the Data category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { UptimeBar } from "@ashutoshswamy/smoui" and set data, name.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { UptimeBar } from "@ashutoshswamy/smoui";

<UptimeBar name="API" data={[{ label: "Mar 1", value: 100 }, { label: "Mar 2", value: 97.1 }]} />

Props 2

data

One entry per day; value is uptime percent. 99.9+ is green, 98+ amber, below that red.

{ label; value }[]
name / height

Heading and bar height in px.

string / numberdefault "Service" / 40