For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/time-picker.md.
v0.0.57
  • English
  • TimePicker

    Data Entry@rockshin/tao-ui

    Select 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

    TSX

    Formats and 12-hour clock

    The format controls the visible columns. use12Hours adds AM/PM.

    TSX

    Time steps

    Offer values in two-hour, fifteen-minute and ten-second steps.

    TSX

    Working hours

    Limit choices to 09:00–18:00 and hide unavailable options.

    TSX

    Three sizes

    This compatible API uses small, middle and large; omitted sizes inherit TaoProvider.

    TSX

    Variants and states

    Combine variants with error, warning or disabled states.

    TSX

    Time range

    RangePicker submits the start and end values together.

    ~

    Choose a range

    TSX

    Confirmation behavior

    needConfirm controls whether selecting a value requires confirmation.

    TSX

    Phone viewport and Chinese text

    The example runs in an independent iframe. Switch viewport sizes to inspect the popup.

    390 × 640
    TSX

    API

    TimePicker.RangePicker

    PropertyDescriptionTypeDefault Value
    bordered@deprecated Use variant.boolean | undefined-
    popupClassName@deprecated Use classNames.popup.root.string | undefined-
    dropdownClassName@deprecated Use classNames.popup.root.string | undefined-
    popupStyle@deprecated Use styles.popup.root.CSSProperties | undefined-

    TimePicker

    PropertyDescriptionTypeDefault Value
    onSelect@deprecated Use onCalendarChange.((time: Dayjs) => void) | undefined-
    addon@deprecated Use renderExtraFooter.(() => ReactNode) | undefined-
    bordered@deprecated Use variant.boolean | undefined-
    popupClassName@deprecated Use classNames.popup.root.string | undefined-
    dropdownClassName@deprecated Use classNames.popup.root.string | undefined-
    popupStyle@deprecated Use styles.popup.root.CSSProperties | undefined-