Time Picker
A field that matches Input, opening a split readout with snap columns and a sliding AM/PM control. Scroll, tap, or type digits. The value is always 24-hour "HH:mm".
Installation
npx stepwise-ui add time-picker
Default
Click a number or type into the underlined hour and minute. Arrow keys step; scroll or drag the wheels.
Start time
24-hour
Drop AM/PM with use12Hour={false} and set the minute increment with step.
Ends at (24h, 15m steps)
Props
PropTypeDescription
valuestring24-hour "HH:mm".
onChange(value: string) => voidFires with 24-hour "HH:mm".
labelstringLabel above the field.
placeholderstringShown when no time is set. Default "Select time".
use12Hourboolean12-hour display with AM/PM. Default true.
stepnumberMinute increment. Default 5.
disabledbooleanDisables the field.
classNamestringMerged onto the outer wrapper.
onOpenChange(open: boolean) => voidFires when the panel opens or closes.