Calendar
View Source
Render days in a calendar to allow users to pick dates easier.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
28
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
5
6
7
8
9
10
Copy
Edit
Sun
Mon
Tue
Wed
Thu
Fri
Sat
28
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
5
6
7
8
9
10
Copy
Edit
Sun
Mon
Tue
Wed
Thu
Fri
Sat
28
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
5
6
7
8
9
10
Copy
Edit
Props
date
DateUsed to calculate the month and year.
initialDate
DateUsed to calculate the initial month and year.
minDate
DateThe minimum date the calendar can be navigated to.
maxDate
DateThe maximum date the calendar can be navigated to.
onDateChange
(month: number) => voidCallback when month or year navigation occurs.
onDateSelect
(day: Date) => voidCallback when a day is selected.
renderDay
(props: Object) => voidControls rendering of each day. Returns props that should be forwarded to Calendar.Day.
selected
DateDisplays a primary colored circle around the selected date.
size
'sm' | 'md' | 'lg'Sets the size of the calendar by changing cell and font sizes.
weekStartsOn
0 | 1 | 2 | 3 | 4 | 5 | 6Determines what day of the week the calendar should start on.