API Reference
RootState
interfaceState exposed by the Root component to its render function and descendants.
Defined in package/src/types.ts:216
| Prop | Type | Default | Description |
|---|---|---|---|
| hasSelection* | boolean | — | true when at least one date is selected. |
| selected* | RawValueForFormat<F> | undefined | — | The primary selected value in the configured format, or undefined. |
| selectedDates* | RawValueForFormat<F>[] | — | All selected dates in the configured format (sorted oldest-first). |
| rangeStart* | RawValueForFormat<F> | undefined | — | Range start in the configured format, or undefined. |
| rangeEnd* | RawValueForFormat<F> | undefined | — | Range end in the configured format, or undefined. |
| focused* | PlainDate | — | The currently focused PlainDate in the grid. |
| viewing* | PlainYearMonth | — | The month/year currently being viewed. |
| timeZone* | string | — | Resolved IANA time zone. |
| locale* | string | — | Resolved BCP 47 locale. |
| readOnly* | boolean | — | Whether the calendar is read-only. |