CalendarSelectionState
Snapshot-state wrapper around the core SelectionEngine.
Properties
Unavailable dates honored by clicks and drags and rendered automatically by DefaultDay. Refreshed on recomposition by rememberCalendarSelectionState — deliberately not a restart key, so inline-built instances never reset the selection.
Functions
Begins a drag range selection at date. Only acts in SelectionMode.Range; SelectionMode.Week and SelectionMode.Month select their whole period on a single tap and ignore drags.
Live-updates the dragged range; start/end are kept ordered.
True for the end endpoint of a completed multi-day range.
True for the start endpoint of a completed multi-day range.
True for the single selection, a multi selection, or a range endpoint.
Emits every selection change, deduplicated; collect outside composition.
Replaces the selection programmatically (e.g. with a SelectionPresets value). The proposal is validated like clicks — mode constraints, bounds, and disabled dates — and violations leave the selection unchanged and fire the event callback. Setting Selection.Empty clears.