API Reference
ViewContextValue
interfaceShared context provided by both MonthView.Root and WeeksView.Root.
Defined in package/src/view-context.ts:5
| Prop | Type | Default | Description |
|---|---|---|---|
| viewType* | "weeks" | "month" | — | Which view type is active. |
| focusedDate* | PlainDate | — | The logically focused date in the grid. |
| setFocusedDate* | (date: PlainDate) => void | — | Moves the logically focused date. |
| tabTargetDate* | PlainDate | — | The date that should receive tabIndex={0} for roving tabindex. |
| gridHasFocus* | boolean | — | Whether the grid currently holds DOM focus. |
| setGridHasFocus* | (v: boolean) => void | — | Tracks whether the grid currently holds DOM focus. |