ComponentClient component

Calendar

A polished calendar for single, multiple and range date selection.

Installation

Preview

July 2026

Usage

tsx
import { Calendar } from "@/components/ui/calendar"

<Calendar
  mode="single"
  selected={date}
  onSelect={setDate}
/>

API reference

PropTypeDefaultDescription
mode"single" | "multiple" | "range"Controls the calendar selection model.
showOutsideDaysbooleantrueShows dates from adjacent months.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.