TimePicker
@rockshin/tao-uiSelect a time or time range with steps, disabled intervals, formatting and confirmation.
The added API follows Ant Design 6.7.0; appearance, theming and Semantic DOM use tao-ui. Existing component APIs remain unchanged.
Examples
Controlled time and clear
Values use Dayjs; clearing returns null.
09:30:00
Formats and 12-hour clock
The format controls the visible columns. use12Hours adds AM/PM.
Time steps
Offer values in two-hour, fifteen-minute and ten-second steps.
Working hours
Limit choices to 09:00–18:00 and hide unavailable options.
Three sizes
This compatible API uses small, middle and large; omitted sizes inherit TaoProvider.
Variants and states
Combine variants with error, warning or disabled states.
Time range
RangePicker submits the start and end values together.
Choose a range
Confirmation behavior
needConfirm controls whether selecting a value requires confirmation.
Phone viewport and Chinese text
The example runs in an independent iframe. Switch viewport sizes to inspect the popup.