Countdown
data-displayCountdown timer displaying days, hours, minutes, seconds with optional labels. Token-driven colors, fonts, and segment styling.
Import
typescript
import { Countdown } from "packages/ui/src";Props
CountdownProps
| Prop | Type | Required |
|---|---|---|
targetDate | Date | Yes |
label | string | No |
onComplete | () => void, showLabels?: boolean | No |
Examples
Countdown
Countdown timer with days, hours, minutes, and seconds segments.
Launch Countdown
Product Launch
07Days
00Hours
00Minutes
00Seconds
Sale Ending
Sale Ends
00Days
23Hours
59Minutes
59Seconds
Without Labels
00
01
00
00