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

Sortable data table
PropTypeDefaultDescription
valuestring | Date-The current value of the picker (ISO string, Date object, or formatted).
onChange(value: string | Date) => void-Callback fired when the value changes.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultTheme variant for the picker.
state"" | "success" | "error" | "warning"-Visual state for the picker (success, error, warning).
rounding"none" | "small" | "medium" | "large"Configured DefaultCorner rounding style.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultBox shadow style.
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultSize of the input and popover (xs-xl).
outlinebooleanfalseDisplay with outline style.
requiredbooleanfalseWhether selection is required.
disabledbooleanfalseDisable the input.
labelstring-Label displayed above or beside the input.
minstring | Date-Minimum selectable date/time (ISO string or Date).
maxstring | Date-Maximum selectable date/time (ISO string or Date).
classNamestring-Custom CSS class for the picker.
data-testidstring"datetime-picker"Test ID for the component container.