Time Picker

The TimePicker component provides a styled time input with labels, helper text, and native picker access.

Usage & Examples

Reminder Time

Uses 24-hour time.

reminder-time.tsx
<TimePicker
    label="Reminder time"
    defaultValue="09:30"
    helperText="Uses 24-hour time."
  />

Props API

40 props
Columns
Time Picker props API
Default
Description
autoCompleteReact.HTMLInputAutoCompleteAttributeNoprops"off"Optional autocomplete value.
buttonClassNamestringNopropsAdditional class name for the picker trigger button.
classNamestringNostylingAdditional class name for the component root.
containerClassNamestringNopropsAdditional class name for the outer label/component container.
data-testidstringNotestingBackward-compatible alias for test ID attributes.
defaultValuestringNopropsInitial time value in HH:mm or HH:mm:ss format for uncontrolled usage.
disabledbooleanNopropsfalseWhether the component is disabled.
errorClassNamestringNopropsAdditional class name for error text.
errorMessageReactNodeNopropsError text connected with aria-errormessage and announced as an alert.
fullWidthbooleanNopropsfalseWhether the picker should stretch to the full available width.
helperTextReactNodeNopropsHelper text connected with aria-describedby.
helperTextClassNamestringNopropsAdditional class name for description text. Additional class name for helper text.