Oddmash UI
All components

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.

PropertyTypeDefault
labelReactNodeRequired
modedate | year-month | date-timedate
value / defaultValuestringEmpty
onValueChange(value: string) => voidNone
labelsPartial<DatePickerLabels>English
localestringen
showCalendarbooleantrue
minYear / maxYearnumber1900 / 2100
required / disabledbooleanfalse
namestringNone
<DatePicker label="Date" defaultValue="2026-11-25" />

Interactive documentation