Component packs › Latch › Dial Time
Spin the dial and it keeps turning, then clicks into a detent; switch AM and PM and the face turns from day to night with a sun or moon riding round.
Dial Time is a time picker from Latch, a component pack with 8 components: Form and sign-in components that work like little mechanisms. Price: $2 for the whole pack.
Built with: momentum + detents, day/night face, slider role.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | "09:30" | Starting time as "HH:MM" (24 h). Default "09:30". |
step | 1 | 5 | 10 | 15 | 5 | Minute step for the minute ring. Default 5. |
title | string | ||
onChange | (value: string) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: spins and flips AM/PM until touched. |
readonly value: stringset(value: string): voiddestroy(): voidimport DialTime from './DialTime';
<DialTime />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form and sign-in components.