Calendar

A date picker calendar with single and range selection modes.

Usage

November 2026

Examples

Range selection

November 2026
December 2026

With year navigation

November 2026

With disabled dates

November 2026

Props

PropTypeDefaultDescription
mode'single' | 'range''single'Selection mode for the calendar
selectedDate | DateRange | undefined-The currently selected date or date range
onSelect(date: Date | DateRange | undefined) => void-Callback when a date is selected
numberOfMonthsnumber1Number of months to display
weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 61The day the week starts on (0 = Sunday, 1 = Monday, etc.)
enableYearNavigationbooleanfalseShow year navigation buttons
disabledMatcher | Matcher[]-Dates that should be disabled
disableNavigationbooleanfalseDisable month/year navigation
startMonthDate-The earliest month that can be navigated to. Use `disabled={{ before: date }}` to also disable earlier days.
endMonthDate-The latest month that can be navigated to. Use `disabled={{ after: date }}` to also disable later days.