DatePicker
Forms

DatePicker.

Native date selection with consistent styling.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

7 props
ParameterTypeRequiredDefaultPossible valuesDescription
valuestringNo——Controlled date as YYYY-MM-DD.
minstringNo——Earliest selectable date.
maxstringNo——Latest selectable date.
disabledbooleanNofalsetrue · falseDisable date selection.
onChangeChangeEventHandler<HTMLInputElement>No——Legacy callback: target.value contains the ISO date.
onValueChange(date:string)=>voidNo——Recommended callback when choosing or clearing a date.
classNamestringNo——Additional CSS class on the outer component element.