Time picker
Choose a time with minute steps and a 12 or 24 hour format.
When to use
- Meeting and reminder times.
- Forms where typing a time is error-prone.
When not to use
- You need a duration, not a clock time; use number fields.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/time-picker
Adds its 4 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
TimePicker
9 props
PropTypeDefault
label *string—
valuestring—
defaultValuestring"09:00"
onValueChange((value: string) => void)—
minuteStep1 | 5 | 10 | 15 | 3015
format"12h" | "24h""12h"
namestring—
disabledboolean—
classNamestring—
formatTime
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- ↓
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
- Enter
- Activates the focused control.
Accessibility
It exposes listbox and option semantics, with aria-selected, aria-haspopup, aria-hidden and aria-label kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/time-picker.mdThe index of every part is at /llms.txt.