Calendar
View Source
Render days in a calendar to allow users to pick dates easier.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
26
27
28
29
30
31
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
1
2
3
4
5
6
Sun
Mon
Tue
Wed
Thu
Fri
Sat
26
27
28
29
30
31
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
1
2
3
4
5
6
Sun
Mon
Tue
Wed
Thu
Fri
Sat
26
27
28
29
30
31
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
1
2
3
4
5
6
Props
Accepts StackView props.
calendarRef
ReactRefObjectGain access to the outer wrapping StackView ref
date
DateUsed to calculate the month and year.
initialDate
DateUsed to calculate the initial month and year.
maxDate
DateThe maximum date the calendar can be navigated to.
minDate
DateThe minimum date the calendar can be navigated to.
onDateChange
(date: Date) => voidCallback when month or year navigation occurs.
onDateSelect
(date: 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 token('--t-fill-color-interaction-default) 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.