Skip to content
caliper ui pro docs

Timer dial

A wind-up timer. Drag round the dial to set the minutes and a red wedge opens with your finger; let go and it starts, the wedge shrinking back to twelve as time runs out, with a small tick each second and a shake at zero.

Pro
0510152025303540455055
25:00

When to use

  • Focus and break timers, cooking and workout apps.
  • Meeting and presentation countdowns where the remaining time should read at a glance.

When not to use

  • Exact durations longer than the dial; use `DurationField`.
  • Counting up; use `Stopwatch`.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/timer-dial

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

TimerDial

4 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
label *string—Names the timer, e.g. "Focus timer".
maxMinutesnumber60The most minutes the dial holds.
defaultMinutesnumber0
onDone(() => void)—

Keyboard

Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.
Enter
Activates the focused control.
Space
Activates the focused control.

Accessibility

It exposes slider semantics, with aria-label, aria-valuemin, aria-valuemax, aria-valuenow, aria-valuetext and aria-live kept in step with state. Changes that matter are announced through a live region.

Motion

  • State changes animate with the library's shared durations and curves, so its timing matches every other part.
  • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/timer-dial.md

The index of every part is at /llms.txt.

More in Changing values