Skip to main content

TimeDial

A drum time picker — selected hour/minute large and lit, neighbours dimmed above/below; 12/24-hour and AM/PM toggles; a full-width Save action bar. Scroll, arrow keys, or tap a neighbour to change a wheel.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A drum time picker — selected hour/minute large and lit, neighbours dimmed above/below; 12/24-hour and AM/PM toggles; a full-width Save action bar.

Accessibility​

Keyboard-navigable grid (arrow keys move days, PageUp/PageDown move months). The selected date is announced; the field has a clear label.

Install and import​

npx shadcn@latest add @prism/time-dial
import { TimeDial } from '@/components/prism/TimeDial';

In a no-build prototype, read it from the bundle instead: const { TimeDial } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
valuestring—Controlled value, 24-hour "HH:MM".
defaultValuestring—Uncontrolled initial value, 24-hour "HH:MM". Default "09:43".
mode"12" | "24"—Controlled hour format: "12" | "24".
defaultMode"12" | "24"—Uncontrolled initial hour format. Default "12".
minuteStepnumber—Minute increment for a single step. Default 1.
titleReact.ReactNode—Small heading above the drum. Default "Clock".
saveLabelReact.ReactNode—Label on the full-width action bar. Default "Save".
onChange(value: string) => void—Fires on every edit with the new 24-hour "HH:MM".
onSave(value: string) => void—Fires when the action bar is pressed with the current "HH:MM".
classNamestring—