Adres
Playground/ docs
Patterns

Countdown Pill

Sizes, urgency tones, a hero treatment, and driving the value from an ISO timestamp with getCountdownLabel.

Countdown Pill

Sizes — sm · md · lg

Three sizes scale the value, label, and icon together. Pick sm for inline schedule rows, md for card headers, and lg when the countdown is the hero element (auction page, deadline banner).

sm

Starts in2h 15m

md

Starts in2h 15m

lg

Starts in2h 15m

Tones — dial urgency up or down

The consumer picks the tone — the component doesn't auto-compute urgency. neutral keeps the icon muted; every other tone matches the icon to the value color so the icon, label, and value read as a single urgency unit.

Starts in4 days
Starts in1 day
Live now00:42:18
Starts in2h 15m
Ends in03:12

Hero countdown — full-card focus

At size="lg" the label uses t-overline and the value reaches 36px — enough to anchor a card or banner. Pair with a tone that matches the surface's call to action.

Marina Heights — Tower B launch

Reservations open Friday at noon.

Starts in2h 15m

Driven from an ISO timestamp

getCountdownLabel(iso, ongoing) formats an ISO timestamp into the value string. Pick the tone yourself based on the diff — here the consumer maps "< 1 hour" to critical, "< 24h" to warning, otherwise info.

Starts in2h 0m