Calendar
UI SDK Calendar: a month grid with arrow, Page Up/Down and Home/End keys, single, multiple or range selection, several months, min/max and unavailable dates, locale and timeZone.
Example
Previous month
November 2026
Next month| 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 |
| 29 | 30 | 1 | 2 | 3 | 4 | 5 |
calendar-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
CalendarPrevious
CalendarNext
CalendarHeading
CalendarGrid
CalendarWeekday
CalendarDay
CalendarMonths
| Prop | Type | Default |
|---|---|---|
months | number | 1 |
labels | CalendarLabels | – |
Other exports
CalendarWeekdaysCalendarWeekscreateCalendarControllertype CalendarLabelstype CalendarPropstype CalendarModetype CalendarValuetype DateMatchersAccessibility
- A grid with arrow keys, Page Up/Down for months and Home/End for weeks.
- Week start and names follow the locale.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.