Skip to content
PixiKit

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
NameTypeDefaultDescription
toDate | string | numberNoneThe 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.
labelsCountdownLabels | 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.
showDaysbooleantrueA tile for days. Off, the hours run past 24.
onComplete() => voidNoneCalled once when the countdown reaches zero.
fontSizenumber48The size of the digits in pixels; the tiles grow with them and shrink to fit a narrow container.
fontFamilystring"inherit"The font, as a CSS font-family; `inherit` follows the page.
classNamestringNone

More data components in Pro

View all

Related