File size: 636 Bytes
cf86710
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Variable: DayPickerContext

> `const` **DayPickerContext**: `Context`\<`undefined` \| [`DayPickerContextValue`](../interfaces/DayPickerContextValue.md)\>

The DayPicker context shares the props passed to DayPicker within internal
and custom components. It is used to set the default values and perform
one-time calculations required to render the days.

Access to this context from the [useDayPicker](../functions/useDayPicker.md) hook.

## Source

[src/contexts/DayPicker/DayPickerContext.tsx:63](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/DayPicker/DayPickerContext.tsx#L63)