ComponentClient component
Calendar
A polished calendar for single, multiple and range date selection.
Installation
Preview
July 2026
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Usage
tsx
import { Calendar } from "@/components/ui/calendar"
<Calendar
mode="single"
selected={date}
onSelect={setDate}
/>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
mode | "single" | "multiple" | "range" | — | Controls the calendar selection model. |
showOutsideDays | boolean | true | Shows dates from adjacent months. |
className | string | — | Overrides or extends the generated Tailwind classes. |
disabled | boolean | false | Prevents user interaction when supported. |