Date | null
`null` renders `placeholder` instead of a formatted value.
boolean
Adds a clear affordance to the field. Needs `onClear` to do anything.
PickerInputType
Which surface the dialog opens on. Default `"picker"`.
boolean
Mount with the picker already open. Uncontrolled after that.
number
Last year offered by the year grid. Defaults to 100 years on.
string
Error text below the field; also recolors the field.
number
0 = Sunday … 6 = Saturday. Defaults to the locale's own week start.
string
Supporting text below the field; hidden while an error is shown.
(date: Date) => boolean
Excludes days `validRange` cannot express (weekends, a computed holiday set).
DateTimePickerLabels
Chrome strings of the picker surface (nav buttons, "Today", "Clear", …).
string
Overrides the formatting/labelling locale. Defaults to the device locale.
MinuteInterval
Minute granularity of the clock. Defaults to 1.
string
Shown while the field has no value.
DateTimePickerRelativeLabels
Overrides the relative day labels, e.g. from i18n:
`relativeLabels={{ today: t("TODAY"), yesterday: t("YESTERDAY") }}`.
Defaults to the device locale via Intl.RelativeTimeFormat.
boolean
Appends an asterisk to the label.
CalendarScrollMode
Month navigation inside the dialog. Default `"endless"`.
number
First year offered by the year grid. Defaults to 100 years back.
boolean
Forces the 24-hour clock face. Left unset, the locale decides.
ValidRange
The selectable window plus individual excluded days.