Date Time Picker

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

Usage

Default

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

Props

Data table
TypeDescription
aria-describedbystringAccessible description reference for the input.
aria-errormessagestringAccessible error message reference for the input.
aria-invalidbooleanMarks the input as invalid. Useful for external validation control.
aria-labelstringAccessible label for the input when no visible label is present or when an override is needed.
aria-labelledbystringAccessible label reference for the input.
aria-requiredbooleanMarks the input as required for assistive technologies.
autoCompleteReact.HTMLInputAutoCompleteAttributeOptional autocomplete value.
classNamestringAdditional class name for custom styling.
data-testidstringOptional test ID for testing frameworks.
descriptionIdstringCustom id for helper/description text.
disabledbooleanWhether the input is disabled.
errorIdstringCustom id for error text.
idstringCustom input id.
labelstringOptional visible label displayed above the input.
labelIdstringCustom label id.
maxstringMaximum allowed date/time (ISO 8601 format).
minstringMinimum allowed date/time (ISO 8601 format).
namestringName attribute for form submission.
onChange((newValue: string) => void)Callback triggered when the date/time value changes.
outlinebooleanWhether to use outlined styling.
pickerButtonAriaDescribedBystringAccessible description reference for the calendar trigger button.
pickerButtonAriaLabelstringAccessible label for the calendar trigger button.
pickerButtonAriaLabelledBystringAccessible label reference for the calendar trigger button.
pickerButtonTitlestringOptional title/tooltip for the picker trigger button.
placeholderstringOptional placeholder text.
readOnlybooleanWhether the input should be read-only.
requiredbooleanWhether the input is required for form validation.
roundingRoundingTypeControls the rounding of the input ('none' | 'small' | 'medium' | 'large' | 'full').
shadowShadowTypeControls the shadow of the input ('none' | 'light' | 'medium' | 'strong' | 'intense').
sizeSizeTypeSize of the component ('xs' | 'small' | 'medium' | 'large' | 'xl').
stateStateTypeState of the input ('success' | 'error' | 'warning' | 'disabled' | '').
themeThemeTypeThematic style of the input ('primary' | 'secondary' | 'tertiary' | 'quaternary' | 'clear').
titlestringOptional title/tooltip for the input.
valuestringCurrent value in ISO 8601 format (e.g., "2025-04-10T12:00").