TimePicker (slots in a popover) and TimeInput (typed), on a 24-hour "HH:mm" value.
API reference
Generated from the types. Every part also takes className.
TimeInput
- value
string- onValueChange
(t: Time | undefined) => void- hour12
boolean = false- min
string- max
string- id
string- aria-label
string- disabled
boolean
TimePicker
- value
string- onValueChange
(t: Time) => void- step
number = 30Minutes between slots.- min
string = "00:00"- max
string = "23:59"- unavailable
string[] = []Slots that exist but cannot be picked.- hour12
boolean = false- placeholder
stringSame aslabels.placeholder, and wins over it.- labels
Partial<TimePickerLabels>The words it says, to translate them.- locale
stringWrites the times as this language does (a BCP 47 tag such as "zh-TW"). Left out, "09:30" or "9:30 AM" as before.- id
string- aria-label
string- disabled
boolean