Countdown Timer
Animated countdown widgets with fire, ice, and neon themes for drops and sales.
Themes
Fire Theme
Hot new release
00
Hours00
Mins00
SecsEvent Started!
Ice Theme
Cool collection drop
00
Hours00
Mins00
SecsEvent Started!
Neon Theme
Exclusive launch
00
Hours00
Mins00
SecsEvent Started!
Usage
import { CountdownTimer, useCountdown } from "@/components/profile"
// Basic usage
<CountdownTimer
targetDate={new Date("2024-12-31")}
title="New Year Sale"
subtitle="Don't miss out!"
theme="neon"
/>
// With hook for custom UI
const { days, hours, minutes, seconds, isExpired } = useCountdown(targetDate)Props
| Prop | Type | Default |
|---|---|---|
| targetDate | Date | required |
| title | string | - |
| subtitle | string | - |
| theme | "fire" | "ice" | "neon" | "fire" |
| onExpire | () => void | - |