Skip to content
Sign upGet access
MicrointeractionsTick countdownMenu

Tick countdown (Pro)

ProIncluded in $99

A countdown dial where one tick falls away every second.

ProThe last lit tick lets go and tumbles away in amber every second; when the minute turns the ring refills in a sweep.

The dial has sixty ticks, one per second of the minute. Every second the last lit tick lets go and falls away under gravity in amber, tumbling clear of the time, while the next one waits in amber. When the minute turns the ring refills in a clockwise sweep, and the digits roll the way the time is moving. Good for the run a scheduled agent is about to start, or a rate limit about to reset.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/tick-countdown

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { TickCountdown } from "@/components/ui/chatcn/pro/tick-countdown"

<TickCountdown endsAt={run.startsAt} label="Starts in" onDone={refresh} />

Props

PropTypeNotes
endsAtnumberEpoch ms; the dial runs its own clock
secondsnumberOr drive it yourself
labelReactNodeOver the time
onDone() => voidOnce, at zero, with endsAt

Accessibility

  • A timer role labelled with the minutes and seconds left.

Motion

  • Ticks fall for about a second; the refill sweeps at 11 ms a tick. Reduced motion: ticks go out in place with no sweep.