API Reference

CalendarStateContextValue

interface

Volatile state provided by CalendarProvider — shared across all views.

Defined in package/src/calendar-types.ts:208

PropTypeDefaultDescription
selected*DateValueObject | undefinedThe currently selected value as a tagged DateValueObject.
selectedDates*PlainDate[]Flat array of all selected dates (plain dates, sorted).
rangeStart*PlainDate | undefinedStart of the current range selection, or undefined.
rangeEnd*PlainDate | undefinedEnd of the current range selection, or undefined.
hoveredDate*PlainDate | undefinedThe currently hovered date (for range preview).
previewStart*PlainDate | undefinedStart of the computed preview range.
previewEnd*PlainDate | undefinedEnd of the computed preview range.
baseRootState*BaseRootStateView-independent part of the render-prop RootState (selection + resolved config), built once here so MonthView and WeeksView expose identical state. Each view adds its own focused/viewing.