Feedback

Count Down

A real-time countdown timer with configurable target date, size variants, and expiration callback.

00
Days
:
00
Hrs
:
00
Min
:
00
Sec

Sizes

Three size variants for different contexts.

sm
00
Days
:
00
Hrs
:
00
Min
:
00
Sec
md
00
Days
:
00
Hrs
:
00
Min
:
00
Sec
lg
00
Days
:
00
Hrs
:
00
Min
:
00
Sec

Without Labels

A compact variant that hides unit labels.

00
:
00
:
00
:
00

Props

PropTypeDefault
targetDateDate | string | number
size"sm" | "md" | "lg""md"
showLabelsbooleantrue
onEnd() => void
classNamestring

Usage

import { CountDown } from '@/components/ui/count-down';

// Set a target 24 hours from now
const target = new Date();
target.setHours(target.getHours() + 24);

// Default
<CountDown targetDate={target} />

// Large, no labels
<CountDown targetDate={target} size="lg" showLabels={false} />

Installation

$npx kachindo-ui add count-down
Profile