DatePicker
A component for selecting dates with platform-specific pickers and multiple style variants
DatePicker
A component that allows users to select dates with a platform-optimized calendar interface, available in multiple style variants.
Import
Props
| Prop | Type | Default | Description | 
|---|---|---|---|
| value | Date | — | Currently selected date | 
| onChange | (date: Date) => void | Required | Called when date selection changes | 
| label | string | — | Label text for the input field | 
| placeholder | string | 'Select date' | Placeholder text when no date is selected | 
| variant | 'animated' | 'classic' | 'underlined' | 'animated' | Style variant of the date picker | 
| maxDate | Date | — | Maximum selectable date | 
| minDate | Date | — | Minimum selectable date | 
| error | string | — | Error message to display | 
| containerClassName | string | — | Additional classes for container |