Oddmash UI
All components

Date Calendar

Choose a day in a monthly calendar.

Usage

Choose the year in the calendar heading to jump directly to it. The selected date changes when you choose a day. Exact minDate and maxDate bounds intersect the optional year bounds and include both endpoints.

Accessibility

Arrow keys move by day or week. Home and End move within a week, Page Up and Down change month, and Enter selects.

PropertyTypeDefault
value / defaultValuestringEmpty
onValueChange(value: string) => voidNone
minYear / maxYearnumber1900 / 2100
minDate / maxDateYYYY-MM-DDYear bounds
localestringen
labelsPartial<DateCalendarLabels>English
disabledbooleanfalse
<DateCalendar defaultValue="2026-11-17" minDate="2025-10-15" maxDate="2027-12-20" />

Interactive documentation