DatePicker lets users select a date.
View source code(newDate?: Date) => void
Handler that is called when the value changes.
Date
The current value.
string
className for the element
"content" | "parent"
Whether the DatePicker should fit its parents or content
Default: contentstring
id for the DatePicker input. Used it with htmlFor props from FormField
boolean
Whether the DatePicker is disabled.
Default: falseboolean
Whether the DatePicker is invalid.
Default: falseReactNode
Left addon of the DatePicker.
Date
The oldest date allowed by the input
Date
The earliest date allowed by the input
string
Temporary text that occupies the DatePicker when it is empty.
"bottom-end" | "bottom-start" | "end-bottom" | "end-top" | "top-end" | "top-start"
Whether the DatePicker should be aligned at the start or end of the trigger
Default: bottom-start"default" | "magicGradient"
The visual style of the DatePicker.