ui-kit0.0

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.

November 2026
MonTueWedThuFriSatSun

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.

November 2026
MonTueWedThuFriSatSun

Pick your check-in day

Multiple dates

November 2026
SunMonTueWedThuFriSat

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.

November 2026
MonTueWedThuFriSatSun
December 2026
MonTueWedThuFriSatSun

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.

November 2026
MonTueWedThuFriSatSun

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

November 2026
MoDiMiDoFrSaSo

API

Calendar

PropTypeDefaultDescription
mode'single' | 'multiple' | 'range''single'Selection model. Decides the type of value.
value / defaultValueDate | null · Date[] · { from, to }—Plain Date objects. Range uses { from: Date | null; to: Date | null }.
onValueChange(value) => void—Called on every selection change.
month / defaultMonthDate—Visible month, controlled or initial. Default: the selected date, else today.
onMonthChange(month: Date) => void—Called with the first visible month.
numberOfMonthsnumber1Months side by side.
weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 61First weekday column (0 = Sunday).
localestring'en-US'BCP 47 tag for month and weekday names.
min / maxDate—Earliest and latest selectable date; the month buttons stop there.
disabledDate[] | (date: Date) => boolean—Days that cannot be selected.
showOutsideDaysbooleantrueMuted days of neighbouring months (single month only). Clicking one turns to that month.
previousLabel / nextLabelstring—Accessible names of the month buttons.
todayDate—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

KeyAction
Arrow keysMove focus by a day (left/right) or a week (up/down). Crossing a month edge turns the page.
Home / EndFirst / last day of the week.
Page Up / Page DownPrevious / next month (same day, clamped).
Shift + Page Up / DownPrevious / next year.
Enter / SpaceSelect 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.