Date Picker
Pick a single date with an optional calendar.
Usage
Use date for YYYY-MM-DD, year-month for YYYY-MM, or date-time for YYYY-MM-DDTHH:mm:ss. The calendar is optional.
Accessibility
Native selects and a calendar disclosure provide keyboard and touch selection. Escape closes the calendar and restores focus.
| Property | Type | Default |
|---|---|---|
| label | ReactNode | Required |
| mode | date | year-month | date-time | date |
| value / defaultValue | string | Empty |
| onValueChange | (value: string) => void | None |
| labels | Partial<DatePickerLabels> | English |
| locale | string | en |
| showCalendar | boolean | true |
| minYear / maxYear | number | 1900 / 2100 |
| required / disabled | boolean | false |
| name | string | None |
<DatePicker label="Date" defaultValue="2026-11-25" />