Date Time Picker

The Date Time Picker component allows users to select a date and time with options for min/max and more.

Usage & Examples

Default

default.tsx
<DateTimePicker
  value={value}
  onChange={setValue}
  label="Select date and time"
/>

Props API

53 props
Columns
Date Time Picker props API
Default
Description
aria-describedbystringNoariaAccessible description reference for the input.
aria-errormessagestringNoariaAccessible error message reference for the input.
aria-invalidbooleanNoariaMarks the input as invalid. Useful for external validation control.
aria-labelstringNoariaAccessible label for the input when no visible label is present or when an override is needed.
aria-labelledbystringNoariaAccessible label reference for the input.
aria-requiredbooleanNoariaMarks the input as required for assistive technologies.
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 date/time value in YYYY-MM-DDTHH:mm format for uncontrolled usage.