| # Function: useNavigation() | |
| > **useNavigation**(): [`NavigationContextValue`](../interfaces/NavigationContextValue.md) | |
| Hook to access the [NavigationContextValue](../interfaces/NavigationContextValue.md). Use this hook to navigate | |
| between months or years in DayPicker. | |
| This hook is meant to be used inside internal or custom components. | |
| ## Returns | |
| [`NavigationContextValue`](../interfaces/NavigationContextValue.md) | |
| ## Source | |
| [src/contexts/Navigation/NavigationContext.tsx:96](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Navigation/NavigationContext.tsx#L96) | |