timer
GraphTimer
Time since a moment, how long ago it was, or the current time, updated every second. Write the start inside the tag: `2026-09-01T09:00Z — since deploy`.
- use it
- Good for uptime, last deploy, or a clock in the corner.
incident
The instant, then the caption. `kind` stays a prop.
00:00:00
api
<GraphTimer title="INCIDENT" kind="elapsed">
2026-08-27T08:00:00Z — api
</GraphTimer>install
command
last deploy
How long since the last deploy.
0s ago
last deploy
import { GraphTimer } from "@/registry/default/graph-timer/graph-timer"
<GraphTimer
title="SHIPPED"
kind="ago"
at="2026-08-27T12:00:00Z"
caption="last deploy"
/>local
The time of day, updating every second.
00:00:00
import { GraphTimer } from "@/registry/default/graph-timer/graph-timer"
<GraphTimer
title="LOCAL"
kind="clock"
/>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| kind | "elapsed" | "ago" | "clock" | "elapsed" | elapsed counts up from at. ago is relative. clock is the time of day. |
| at | Date | number | string | — | Start time for elapsed and ago. A date, timestamp, or ISO string. Optional when children are Markdown. |
| children | Markdown | — | 2026-09-01T09:00Z — since deploy |
| caption | string | — | Line under the number. |
| palette | "mono" | "duo" | "multi" | "mono" | mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents. |
| corner | string | "+" | 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. |
| className | string | — | Passed to the outer frame. |