Type alias: FocusContextValue
Ƭ FocusContextValue: Object
Represents the value of the FocusContext.
Type declaration
Name | Type | Description |
---|---|---|
blur | () => void | Blur the focused day. |
focus | (day : Date ) => void | Focus a day. |
focusDayAfter | () => void | Focus the day after the focused day. |
focusDayBefore | () => void | Focus the day before the focused day. |
focusEndOfWeek | () => void | - |
focusMonthAfter | () => void | - |
focusMonthBefore | () => void | - |
focusStartOfWeek | () => void | - |
focusTarget | Date | undefined | Day that will be focused. |
focusWeekAfter | () => void | Focus the day in the week after the focused day. |
focusWeekBefore | () => void | Focus the day in the week before the focused day. |
focusYearAfter | () => void | - |
focusYearBefore | () => void | - |
focusedDay | Date | undefined | The day currently focused. |
Defined in
packages/react-day-picker/src/contexts/Focus/FocusContext.tsx:17