API Reference

MonthViewStateContextValue

interface

Volatile state provided by MonthView.Root.

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

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*PlainDateTimeDate-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*RootStateThe root component's state object for render functions.