API Reference

MonthViewStableContextValue

interface

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

Defined in package/src/month-view-types.ts:56

PropTypeDefaultDescription
numberOfMonths*numberNumber of simultaneously visible months.
fixedWeeks*booleanWhether month grids always render 6 week rows.
outsideDays*OutsideDaysHow outside-month days are displayed.
overflowBehavior*MonthOverflowBehaviorHow month navigation behaves at bounds.
goNextMonth*() => voidNavigate to the next month(s).
goPrevMonth*() => voidNavigate to the previous month(s).
setGridLabelId*(monthIndex: number, id: string | undefined) => voidRegister (or clear) the id of a label element for aria-labelledby, keyed by month index.
gridFocusedRef*React.RefObject<boolean>Ref tracking whether the grid currently holds DOM focus (avoids state re-renders).