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