Skip to content
caliper ui pro docs

Mini calendar

A strip of days for choosing one close to now. The arrows turn a whole strip, arrow keys move the choice a day at a time and turn the strip at its edge, today carries the accent and days with something on them carry a mark.

Pro

December 2026

Times on Friday 4 December

When to use

  • Booking steps, agendas and day-filtered feeds where the next week or two is what matters.
  • Narrow spaces where a month grid is too tall.

When not to use

  • Dates far away or in the past; use the date picker.
  • Ranges; use the date range picker.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/mini-calendar

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

MiniCalendar

11 props
PropTypeDefaultDescription
labelstring"Choose a day"
selectedstring | null—ISO date, e.g. "2026-10-21".
defaultSelectedstring—
onSelect((iso: string) => void)—
startstring—The first day in view. Defaults to the selected day, or today.
daysnumber7How many days the strip shows.
minstring—
maxstring—
marks((iso: string) => string | undefined)—A short note for a day with something on it ("2 bookings"); the day shows a mark and the note is read with it.
localestring"en-US"
classNamestring—

Keyboard

←
Moves to the previous item or value.
→
Moves to the next item or value.

Accessibility

It exposes radiogroup and radio semantics, with aria-live, aria-label, aria-checked and aria-disabled kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/mini-calendar.md

The index of every part is at /llms.txt.

More in Dates