Calendar
A date field primitive that lets users select dates or ranges.
Installation
Bash
Usage
Examples
Range selection
API reference
Calendar
A thin styling wrapper over react-day-picker
(pinned to ^10.0.1) — all DayPicker props apply. v10 is the
legacy-name release of @daypicker/react and ships the v9-shaped API;
guides written for v8 do not apply here (fromDate/toDate are gone).
| Prop | Type | Default |
|---|---|---|
mode | "single" | "multiple" | "range" — no default; undefined renders non-interactive | — |
selected / onSelect | selection value/callback per mode | — |
buttonVariant | Button variant for the nav buttons — SevenUI-only addition | "ghost" |
startMonth / endMonth | Date — navigation bounds | — |
captionLayout | "label" | "dropdown" | "dropdown-years" (dropdowns auto-range 100 years back without startMonth) | "label" |
numberOfMonths | number | 1 |
locale | from react-day-picker/locale | — |
timeZone | string — pairs with the re-exported TZDate class | — |
Day cell state is styled through data attributes — data-selected,
data-today, data-outside, data-disabled — and range state through
the range_start / range_middle / range_end classNames keys.
CalendarDayButton
The styled day cell button, exported for use in a custom components
override.