Calendar An input that displays a calendar to pick a day or days.
Use Calendar for selecting one or many days.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
By default, Calendar displays the month of the current day. Use the
month and onMonthChange to control the current month.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Use single as mode to allow single selections.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Use multiple as mode to allow multiple selections.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Use range as mode to allow selecting a range.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Use numberOfMonths to display more months side-by-side. This property is
responsive, so you could change the number of months on different breakpoints.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Use showOutsideDays to display days falling in the next or the previous
month.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 2 3 4
Use disabled to disable one or more days. You can give it a date, a range,
or a list that contains both.
Here's how to disable multiple days.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Here's how to disable a range of days.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Use booked to indicate a day, days, or range with events.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
The kind of selection to allow. Action to perform when selection changes. ((selected?: Date | undefined) => void) | ((selected?: Date[] | undefined) => void) | ((selected?: DateRange | undefined) => void)
The selected day, days, or range. Date | Date[] | DateRange
The month displayed in the calendar. Event fired when the user navigates between months. The number of displayed months. Defaults to 1. Show the outside days.
An outside day is a day falling in the next or the previous month.
Default is false. Disable given day, days, range, or a combination of all. Show an indicator on the given day, days, range, or a combination to indicate having events.