API Reference
MonthViewStateContextValue
interfaceVolatile state provided by MonthView.Root.
Defined in package/src/month-view-types.ts:76
| Prop | Type | Default | Description |
|---|---|---|---|
| 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. |