mode | single | range | single | Picks one day, or a range from its first day to its last. |
| Picks one day, or a range from its first day to its last. |
defaultValue | Date | DateRange | - | The picked day or range on first render, uncontrolled. |
| The picked day or range on first render, uncontrolled. |
value | Date | DateRange | - | |
|
onValueChange | (value: Date | DateRange | undefined, day?: Date) => void | - | Called with the new day or range whenever it changes, and the day that was clicked. |
| Called with the new day or range whenever it changes, and the day that was clicked. |
weekStartsOn | number | 0 | The first day of the week, from 0 for Sunday to 6 for Saturday. |
| The first day of the week, from 0 for Sunday to 6 for Saturday. |
startMonth | Date | - | The earliest month to show, and the first year in the list. 100 years back by default. |
| The earliest month to show, and the first year in the list. 100 years back by default. |
endMonth | Date | - | The latest month to show, and the last year in the list. 10 years ahead by default. |
| The latest month to show, and the last year in the list. 10 years ahead by default. |
sliding | boolean | true | |
|
footer | boolean | true | The line under the grid: the picked day and a Today key, or the range and its nights. |
| The line under the grid: the picked day and a Today key, or the range and its nights. |
disabledDays | Matcher | Matcher[] | - | Days that cannot be picked: a date, a list of them, a range, or a function of the date. |
| Days that cannot be picked: a date, a list of them, a range, or a function of the date. |
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Blocks picking and dims every day. |
| Blocks picking and dims every day. |
animated | boolean | true | |
|
className | string | - | |
|
focus | boolean | string | true | |
|
container | HTMLElement | null | - | |
|