Usage
November 2026
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
Examples
Range selection
November 2026
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
December 2026
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
With year navigation
November 2026
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
With disabled dates
November 2026
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
Props
| Prop | Type | Default | Description |
|---|---|---|---|
mode | 'single' | 'range' | 'single' | Selection mode for the calendar |
selected | Date | DateRange | undefined | - | The currently selected date or date range |
onSelect | (date: Date | DateRange | undefined) => void | - | Callback when a date is selected |
numberOfMonths | number | 1 | Number of months to display |
weekStartsOn | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 1 | The day the week starts on (0 = Sunday, 1 = Monday, etc.) |
enableYearNavigation | boolean | false | Show year navigation buttons |
disabled | Matcher | Matcher[] | - | Dates that should be disabled |
disableNavigation | boolean | false | Disable month/year navigation |
startMonth | Date | - | The earliest month that can be navigated to. Use `disabled={{ before: date }}` to also disable earlier days. |
endMonth | Date | - | The latest month that can be navigated to. Use `disabled={{ after: date }}` to also disable later days. |