API Reference

WeeksViewStableContextValue

interface

Stable values (config + callbacks) provided by WeeksView.Root.

Defined in package/src/weeks-view-types.ts:71

PropTypeDefaultDescription
weekCount*numberNumber of week rows to display (the prop value).
scrollBy*"row" | "page"How much to scroll per navigation step.
overflowBehavior*OverflowBehaviorHow navigation behaves at bounds.
goNext*(shiftBy?: number | undefined) => voidNavigate to the next week(s). Optionally override the shift amount (in weeks).
goPrev*(shiftBy?: number | undefined) => voidNavigate to the previous week(s). Optionally override the shift amount (in weeks).
scrollToWeek*(target: FirstWeekSpec, options?: { snap?: ScrollToWeekSnap; } | undefined) => voidImperatively scroll so that the target week is visible at the given snap position.
gridFocusedRef*React.MutableRefObject<boolean>Ref tracking whether the grid currently holds DOM focus (avoids state re-renders).
setGridLabelId*(id: string | undefined) => voidRegister (or clear) the id of a label element for aria-labelledby.