Components
TimeSlotPicker
A grid of time slots where exactly one can be chosen, such as appointment
times beside a Calendar (Base UI RadioGroup).
Each slot is a radio, so arrow keys move the selection and name submits
the chosen value with a form. Slots reflow into as many equal columns as
fit; the picker sets no outer padding.
Usage
Best practices
Pass slot values already formatted for display, or give each slot a
label- the picker does no time parsing or 12/24-hour formatting.Name the group with
aria-labeloraria-labelledby; screen readers announce it before the first slot.Use
TimeSlotPickerfor a fixed set of offered times; for any time the user types, useInput type="time".
Props
Also exports
- interface
TimeSlot - interface
TimeSlotPickerProps