Skip to content

Countdown

GraphCountdown

Time left until a date. After that it shows a short label you pass in.

Good for a freeze, a launch, or a window that closes. Elapsed time since a start is Timer.

Command

pnpm dlx shadcn@latest add <origin>/r/graph-countdown.json

Freeze

Until New Year's. After that it says open.

[ FREEZE ]

00:00:00

until launch

remaining 00:00:00

Closed

The date has passed, so the frame shows the label you set.

[ WINDOW ]

00:00:00

remaining 00:00:00

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge of the frame.
toDate | number | stringThe deadline. A date, timestamp, or ISO string.
donestring"done"What to show after the deadline.
captionstringLine 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.
cornerstring"+"Character at each corner of the frame.
classNamestringPassed to the outer frame.