Skip to content
SevenUI
Sign in
On this page

Calendar

A date field primitive that lets users select dates or ranges.

June 2026

Installation

Bash

Usage

Examples

Range selection

June 2026
July 2026

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).

PropTypeDefault
mode"single" | "multiple" | "range" — no default; undefined renders non-interactive—
selected / onSelectselection value/callback per mode—
buttonVariantButton variant for the nav buttons — SevenUI-only addition"ghost"
startMonth / endMonthDate — navigation bounds—
captionLayout"label" | "dropdown" | "dropdown-years" (dropdowns auto-range 100 years back without startMonth)"label"
numberOfMonthsnumber1
localefrom react-day-picker/locale—
timeZonestring — 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.

Was this page helpful?