Countdown Timer
componentLive countdown to a prediction market expiry. Ticks every second, shows 'Settled' when expired.
npx shadcn@latest add https://ui.purrdict.xyz/r/countdown-timer.json import { CountdownTimer } from "@/components/hip4/countdown-timer"
<CountdownTimer
expiry={market.expiry}
onExpire={() => refetchMarket()}
/> | Prop | Type | Description |
|---|---|---|
expiry | Date | UTC expiry date |
className | string | Additional CSS classes |
onExpire | () => void | Called when timer reaches zero |