Time Picker
A time you can type, like 930 or 9:30pm, or pick from a list every 15 minutes, in the same box and states as Input. Built on ui-sdk's Combobox: typing filters the list, Enter takes a time that isn't in it, and the value is "HH:mm".
BetaReady to use. Its API can still change in a minor release; the changelog says when.
import { Field, TimePicker } from "@leap-crm/design-system";Playground
Change a prop and the component follows. Its code is under Props.
Props
step
hourCycle
placeholder
disabled
readOnly
required
size
Best practices
When to use it, and the rules that apply in particular places.
| Guidance | Practice |
|---|---|
| Do | Use it for a time of day, like a meeting's start or a court appearance. Pair it with DatePicker when the date is picked too. |
| Do | Set step to the interval appointments book on, like 30 for the half hour. The default is 15 minutes. |
| Do | Let people type the time. "930" and "9:30pm" both work, and Enter takes a time that isn't in the list, so a 9:40 start doesn't have to fit the step. |
| Do | Put it in a Field with a label. Outside a field, name it with aria-label. |
| Don't | Use it for a duration, like time spent on a matter. It holds a time of day as "HH:mm"; use Input with a suffix for the unit. |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | The time as "HH:mm", like "09:30". |
| defaultValue | string | — | The time it starts with, when uncontrolled. |
| onChange | (value: string) => void | — | Runs with "HH:mm" when a time is picked, or typed and committed with Enter. |
| step | number | 15 | Minutes between the times in the list. |
| hourCycle | 12 | 24 | 12 | 12 shows "9:30 am", 24 shows "09:30". |
| size | TextSize | "md" | xs 28, sm 32, md 36 (forms, the default), lg 40, as Input. |
| placeholder | string | — | Grey hint text while it's empty. Never a replacement for a label. |
| aria-label | string | — | Names the field outside a Field. |
| id | string | — | The control's id, for a label's htmlFor or aria-describedby. |
| name | string | — | The field's name when a form submits. |
| disabled | boolean | — | Shows it as unavailable and stops it responding. |
| readOnly | boolean | — | Shows the value without letting it change. Still focusable. |
| required | boolean | — | Marks it required: the label gets its asterisk and the form checks it. |
| className | string | — | Classes added to the root element, merged with its own. Tokens only. |
Code
What the playground shows, ready to copy.
import { TimePicker } from "@leap-crm/design-system";
<TimePicker aria-label="Start time" />Keyboard
The keys it answers to. Tab moves between components, arrows move within them.
| Keys | What they do |
|---|---|
| Typing | Filters the list of times. |
| Arrow keys | Move the highlight while focus stays in the input. |
| Enter | Chooses the highlighted time, or takes a typed time between the steps. |
| Escape | Closes the list and keeps focus in the input. |





