Calendar

A month to pick a date or a range from, in the page's locale and week start. Built on ui-sdk's Calendar: arrow keys move between days, Page Up and Down between months, and the month and year are dropdowns (native selects on touch screens). Each day is a 32 px cell with a 28 px circle. Paging slides the new month in from the side you went toward while the old one crossfades out, and the grid eases between five- and six-week months instead of jumping; with reduced motion it only crossfades.

BetaReady to use. Its API can still change in a minor release; the changelog says when.

import { Calendar } from "@leap-crm/design-system";

Playground

Change a prop and the component follows. Its code is under Props.

SMTWTFS
1234567
891011121314
15161718192021
22232425262728
293012345

Props

weekdayFormat

Best practices

When to use it, and the rules that apply in particular places.

GuidancePractice
DoUse it on its own where the month is the content, like a panel for choosing an appointment day. For a date in a form, use DatePicker, which opens this month from a field.
DoSet min, max and unavailable to disable the days that can't be chosen, like weekends for a court date or days before the instruction date.
DoUse mode="range" when the span is picked on the month itself, like a lawyer's leave. In a form, use DateRangePicker.
Don'tUse it for a date of birth or another date far in the past. Use DateInput: typing is faster than paging back decades.
Don'tBuild a date field from CalendarMonth in your own popover. Use DatePicker, which opens the same month from a field.

Props

Also takes ui-sdk's Calendar options: mode (single or range), value, defaultValue, onValueChange, month, defaultMonth, min, max, unavailable, disabled, readOnly, locale, weekStartsOn and today.

Calendar

PropTypeDefaultDescription
classNamestring—Classes added to the root element, merged with its own. Tokens only.
weekdayFormatunknown"narrow"

CalendarMonth

No props of its own.

Code

What the playground shows, ready to copy.

import { Calendar } from "@leap-crm/design-system";

<Calendar defaultValue="2026-11-14" />

Range

Pick a start and an end: the days between take the navy-100 band, the ends fill navy.

SMTWTFS
1234567
891011121314
15161718192021
22232425262728
293012345

Limits

min and max disable the days outside them; weekends are unavailable here.

SMTWTFS
1234567
891011121314
15161718192021
22232425262728
293012345

What the examples share

The imports and the scaffolding the examples above call. The scaffolding lives in this page, not in the library.

import { useState } from "react";

import { Calendar } from "@leap-crm/design-system";

function SingleDemo() {
  const [value, setValue] = useState<string | null>("2026-11-14");
  return (
    <div className="flex flex-col gap-3">
      <Calendar
        value={value}
        onValueChange={next => setValue(typeof next === "string" ? next : null)}
        defaultMonth="2026-11"
        today="2026-11-22"
      />
      <span className="text-small text-neutral-text-muted">
        Selected: {value ?? "none"}
      </span>
    </div>
  );
}

Keyboard

The keys it answers to. Tab moves between components, arrows move within them.

KeysWhat they do
Arrow keysMove focus by day and by week.
Page UpPage DownMove by month, and with Shift by year.
HomeEndGo to the first and last day of the week.
EnterSpaceSelect the focused day.
EscapeIn range mode, drops a start that has no end yet.
TabLeaves the grid after one stop.