Components
Calendar
A calendar component for selecting dates, with support for single date, month, and year selection.
Demo
Code
February
2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Installation
Usage
Basic Usage
Variants
Date Range Selection
Select a range of dates:
With Min/Max Dates
Restrict selectable dates:
Maximum Days for Range
Limit the number of days that can be selected in a range:
API Reference
Calendar
| Prop | Type | Default | Description |
|---|---|---|---|
value | Date | — | Selected date (single mode) |
onValueChange | (date: Date) => void | — | Callback when date changes |
variant | 'date' | 'month' | 'year' | 'date' | Picker variant |
mode | 'single' | 'range' | 'single' | Selection mode |
startDate | Date | — | Range start date |
endDate | Date | — | Range end date |
onRangeChange | (start, end) => void | — | Callback for range changes |
minDate | Date | — | Minimum selectable date |
maxDate | Date | — | Maximum selectable date |
maxDays | number | — | Max days for range selection |
className | string | — | Additional classes |