Skip to content
mdxcn is now part of Shadcn Labs. details

uptime

GraphUptime

One glyph per day for ok, degraded, down or no data, wrapping every 30 days. Shorthand keeps long runs short: `ok*40 down*2 ok*48`.

use it
Good for a status per day, or the blast radius of an outage.
instead
A heatmap or an activity grid.

ninety days

One glyph per day, wrapped every 30. Percent is the share of ok days. `ok*18` is eighteen ok days, so a quarter fits on one line.

[ API ]

94%

Jun 1Aug 29

█ up▒ slow· down

94 percent uptime over 90 days, Jun 1 to Aug 29
<GraphUptime title="API" from="Jun 1" to="Aug 29">

ok*18 degraded ok*22 down*2 ok*17 degraded*2 ok*28

</GraphUptime>

install

command

incident window

days as one string. empty days sit as dashes so a gap stays visible.

[ WEBHOOKS ]

80%

MonFri

█ up▒ slow· down

80 percent uptime over 10 days, Mon to Fri
import { GraphUptime } from "@/registry/default/graph-uptime/graph-uptime"

<GraphUptime
  title="WEBHOOKS"
  from="Mon"
  to="Fri"
  days="ok ok ok degraded ok empty empty ok down ok ok ok"
/>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
daysUptimeStatus[] | "ok ok down"—ok, degraded, down, or empty. Optional when children are Markdown.
childrenMarkdown—ok*40 degraded ok*20 down*2 ok*27
fromstring—Label at the start of the range.
tostring—Label at the end of the range.
columnsnumber30Days per row. Short series are not padded to this width.
glyphs"shade" | "ascii" | "hash" | "bar" | string[]"shade"Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters.
palette"mono" | "duo" | "multi""mono"mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents.
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.