File size: 2,719 Bytes
cf86710 | 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | # Interface: NavigationContextValue
Represents the value of the [NavigationContext](../variables/NavigationContext.md).
## Properties
### currentMonth
> **currentMonth**: `Date`
The month to display in the calendar. When `numberOfMonths` is greater than
one, is the first of the displayed months.
#### Source
[src/contexts/Navigation/NavigationContext.tsx:18](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L18)
***
### displayMonths
> **displayMonths**: `Date`[]
The months rendered by DayPicker. DayPicker can render multiple months via
`numberOfMonths`.
#### Source
[src/contexts/Navigation/NavigationContext.tsx:23](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L23)
***
### goToDate()
> **goToDate**: (`date`, `refDate`?) => `void`
Navigate to the specified date.
#### Parameters
| Parameter | Type |
| :------ | :------ |
| `date` | `Date` |
| `refDate`? | `Date` |
#### Returns
`void`
#### Source
[src/contexts/Navigation/NavigationContext.tsx:27](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L27)
***
### goToMonth()
> **goToMonth**: (`month`) => `void`
Navigate to the specified month.
#### Parameters
| Parameter | Type |
| :------ | :------ |
| `month` | `Date` |
#### Returns
`void`
#### Source
[src/contexts/Navigation/NavigationContext.tsx:25](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L25)
***
### isDateDisplayed()
> **isDateDisplayed**: (`day`) => `boolean`
Whether the given day is included in the displayed months.
#### Parameters
| Parameter | Type |
| :------ | :------ |
| `day` | `Date` |
#### Returns
`boolean`
#### Source
[src/contexts/Navigation/NavigationContext.tsx:33](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L33)
***
### nextMonth?
> `optional` **nextMonth**: `Date`
The next month to display.
#### Source
[src/contexts/Navigation/NavigationContext.tsx:29](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L29)
***
### previousMonth?
> `optional` **previousMonth**: `Date`
The previous month to display.
#### Source
[src/contexts/Navigation/NavigationContext.tsx:31](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L31)
|