API Reference

MonthViewStateContextValue

interface

Volatile state provided by MonthView.Root.

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

PropTypeDefaultDescription
currentMonth*{ year: number; month: number; }—The primary displayed month (year + month).
weeks*PlainDate[][]—2D array of weeks for the first visible month grid.
allMonths*MonthData[]—Pre-computed data for all visible months (length = numberOfMonths).
currentDateTime*PlainDateTime—Date-time representing the viewed month with time from the selection (for "today" highlighting).
gridLabelIds*Record<number, string>—Map of month index to label element id (for per-grid aria-labelledby).
rootState*RootState—The root component's state object for render functions.