File size: 577 Bytes
cf86710
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Function: useFocusContext()

> **useFocusContext**(): [`FocusContextValue`](../type-aliases/FocusContextValue.md)

Hook to access the [FocusContextValue](../type-aliases/FocusContextValue.md). Use this hook to handle the
focus state of the elements.

This hook is meant to be used inside internal or custom components.

## Returns

[`FocusContextValue`](../type-aliases/FocusContextValue.md)

## Source

[src/contexts/Focus/FocusContext.tsx:131](https://github.com/gpbl/react-day-picker/blob/9ad13dc72fff814dcf720a62f6e3b5ea38e8af6d/src/contexts/Focus/FocusContext.tsx#L131)