Countdown

Countdown is a neobrutalist React component from Cruise UI. Days, hours, minutes and seconds in boxes, or one compact line; red in the last minute. Install it with npx shadcn@latest add @cruiseui/countdown.

Install

Terminal

npx shadcn@latest add @cruiseui/countdown

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners
Offer ends in

When to use it

When to use

Sales ending, events starting, game rounds.

When not to

Fake urgency on things that don't end.

Props

CruiseCountdown

PropTypeDefaultDescription
target?string | number | Date—When it ends: a Date, an ISO string or a timestamp.
duration?number—Or: how long from when it appears, in milliseconds (e.g. a 90-second round).
onComplete?(() => void)——
compact?booleanfalseOne line, "02:14:09", instead of boxes.
urgent?booleantrueTurn --danger in the last minute.
showDays?boolean—Show the days box (default: when there's at least a day left).
label?string"Time left"—
className?string——

Accessibility

  • role="timer" with a label; the ticking digits are hidden from screen readers.
  • It's announced each minute and each of the last 10 seconds, not every second.
  • Tabular numbers, so the layout never shifts.