Countdown

Days, hours, minutes and seconds, each digit sliding in as it changes.

no dependenciesMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/countdown.json

Usage

import { Countdown } from "@/components/countdown";

<Countdown to="2026-12-31T23:59:59" onComplete={() => setLive(true)} />

Props

PropTypeDefaultDescription
to*Date | number | string–Target date/time (Date, timestamp, or ISO string).
labels[string, string, string, string]["Days", "Hours", "Minutes", "Seconds"]Labels under each unit.
onComplete() => void–Called once when the countdown reaches zero.
tileClassNamestring–Classes for each number tile.
classNamestring–