Skip to main content
Version: 8.10.1

Type alias: FocusContextValue

FocusContextValue: {"blur": () => void;"focus": (day) => void;"focusDayAfter": () => void;"focusDayBefore": () => void;"focusEndOfWeek": () => void;"focusMonthAfter": () => void;"focusMonthBefore": () => void;"focusStartOfWeek": () => void;"focusTarget": Date | undefined;"focusWeekAfter": () => void;"focusWeekBefore": () => void;"focusYearAfter": () => void;"focusYearBefore": () => void;"focusedDay": Date | undefined; }

Represents the value of the FocusContext.

Type declaration​

MemberTypeDescription
blur() => voidBlur the focused day.
focus(day) => voidFocus a day.
focusDayAfter() => voidFocus the day after the focused day.
focusDayBefore() => voidFocus the day before the focused day.
focusEndOfWeek() => void-
focusMonthAfter() => void-
focusMonthBefore() => void-
focusStartOfWeek() => void-
focusTargetDate | undefinedDay that will be focused.
focusWeekAfter() => voidFocus the day in the week after the focused day.
focusWeekBefore() => voidFocus the day in the week before the focused day.
focusYearAfter() => void-
focusYearBefore() => void-
focusedDayDate | undefinedThe day currently focused.

Source​

src/contexts/Focus/FocusContext.tsx:17