API Reference

ViewContextValue

interface

Shared context provided by both MonthView.Root and WeeksView.Root.

Defined in package/src/view-context.ts:5

PropTypeDefaultDescription
viewType*"weeks" | "month"Which view type is active.
focusedDate*PlainDateThe logically focused date in the grid.
setFocusedDate*(date: PlainDate) => voidMoves the logically focused date.
tabTargetDate*PlainDateThe date that should receive tabIndex={0} for roving tabindex.
gridHasFocus*booleanWhether the grid currently holds DOM focus.
setGridHasFocus*(v: boolean) => voidTracks whether the grid currently holds DOM focus.