Countdown
Days, hours, minutes and seconds to a date in tiles, each digit rolling like an odometer as it changes.
pixikit.com/docs/components/countdown
Customize
Show days
Font size48px
Font family
Props
7| Name | Type | Default | Description |
|---|---|---|---|
to | Date | string | number | None | The moment it counts down to: a Date, a date string or a timestamp in milliseconds. Left out, it counts down from about three and a half days, for previews. |
labels | CountdownLabels | string[] | ["days", "hours", "min", "sec"] | The words under the tiles, in the page's language: an object, or a list in the order days, hours, minutes, seconds. |
showDays | boolean | true | A tile for days. Off, the hours run past 24. |
onComplete | () => void | None | Called once when the countdown reaches zero. |
fontSize | number | 48 | The size of the digits in pixels; the tiles grow with them and shrink to fit a narrow container. |
fontFamily | string | "inherit" | The font, as a CSS font-family; `inherit` follows the page. |
className | string | None |