Forms
Calendar
Browse and pick dates in a month view.
Single date
A month grid for picking one day. Today carries a quiet outline; the selected day is filled. Use the arrows or the keyboard to change month.
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
Pick a day for your demo
When to use
- Choosing dates where seeing the surrounding days matters: bookings, availability, scheduling.
- Inside a popover as a date picker (the date helpers are exported for that).
- Not for far-away dates like a birth date (a typed field is faster), or for times.
Date range
mode="range": the first click sets the start, the second completes the range in either direction, a third starts over. While the end is open, hovering or moving keyboard focus previews the range.
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
Pick your check-in day
Multiple dates
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
Select the days you’re on call
Two months
numberOfMonths places months side by side; they wrap under each other on narrow screens. Here the past is disabled with min.
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
Min, max and disabled dates
min and max bound the range; disabled takes a list of dates or a function. Disabled days stay focusable for the keyboard but can’t be selected.
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
Appointments run weekdays, up to 60 days ahead
Locale and week start
Month and weekday names come from Intl. weekStartsOn is 0 (Sunday) to 6; the default is 1 (Monday).
| Mo | Di | Mi | Do | Fr | Sa | So |
|---|---|---|---|---|---|---|
API
Calendar
| Prop | Type | Default | Description |
|---|---|---|---|
| mode | 'single' | 'multiple' | 'range' | 'single' | Selection model. Decides the type of value. |
| value / defaultValue | Date | null · Date[] · { from, to } | — | Plain Date objects. Range uses { from: Date | null; to: Date | null }. |
| onValueChange | (value) => void | — | Called on every selection change. |
| month / defaultMonth | Date | — | Visible month, controlled or initial. Default: the selected date, else today. |
| onMonthChange | (month: Date) => void | — | Called with the first visible month. |
| numberOfMonths | number | 1 | Months side by side. |
| weekStartsOn | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 1 | First weekday column (0 = Sunday). |
| locale | string | 'en-US' | BCP 47 tag for month and weekday names. |
| min / max | Date | — | Earliest and latest selectable date; the month buttons stop there. |
| disabled | Date[] | (date: Date) => boolean | — | Days that cannot be selected. |
| showOutsideDays | boolean | true | Muted days of neighbouring months (single month only). Clicking one turns to that month. |
| previousLabel / nextLabel | string | — | Accessible names of the month buttons. |
| today | Date | — | Override “today” (tests, demos). |
Date helpers are exported for building pickers: startOfDay, addDays, addMonths, addYears, startOfMonth, endOfMonth, startOfWeek, isSameDay, isBetween, clampDate, getMonthWeeks, dateKey and more. They build dates from year/month/day parts at local midnight, so DST and time zones never shift a day.
Keyboard
| Key | Action |
|---|---|
| Arrow keys | Move focus by a day (left/right) or a week (up/down). Crossing a month edge turns the page. |
| Home / End | First / last day of the week. |
| Page Up / Page Down | Previous / next month (same day, clamped). |
| Shift + Page Up / Down | Previous / next year. |
| Enter / Space | Select the focused day. |
Accessibility
- Follows the WAI-ARIA date grid pattern: a role="grid" table with weekday column headers and one tab stop (roving tabindex).
- Each day is a button named with its full date (“Tuesday, November 24, 2026”); today has aria-current="date"; selected cells have aria-selected.
- The month title is a polite live region, so changing month is announced.
- Selection and today are never colour only: today is outlined, selection is filled.
Motion
- Changing month slides the grid 10px and fades it in over 220ms; the direction follows the arrow used.
- Day presses scale to .94 on the snappy spring.
- Reduced motion: the month still changes, without the slide.