Themed hour and minute columns (no native control). Values are 24-hour "HH:MM" strings; step is the minute granularity in seconds, min / max disable times outside a range, and hour12 shows an AM / PM clock. Arrow keys move within a column and between columns.

Props

  • labelstring

    Label text.

  • valuestring

    Time as 24-hour "HH:MM".

  • onChange(value: string) => void

    Called with the new "HH:MM".

  • stepnumber
    Default: 900

    Minute granularity in seconds (900 = every 15 minutes).

  • minstring

    Earliest time ("HH:MM").

  • maxstring

    Latest time ("HH:MM").

  • hour12boolean
    Default: false

    Show a 12-hour clock with AM / PM (the value stays 24-hour).

  • placeholderstring
    Default: 'Select time'

    Text when no time is chosen.

  • errorstring

    Error message shown below the control; sets the invalid style.

  • disabledboolean
    Default: false

    Disable the control.

  • classNamestring
    Default: ''

    Extra classes for the root element.

  • ...rest

    Any other props are passed to the underlying element.

Related hooks and theme:useDismissable