Skip to content
Eskais UI

Forms

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

November 2026

SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293012345

Installation

npx shadcn@latest add @eskais/calendar
Brings alongbuttontooltip
npm packagesclass-variance-authority@0.7.1lucide-react

Usage

Import
import {  Calendar,  CalendarDay,  CalendarGrid,  CalendarHeading,  CalendarMonths,  CalendarNext,  CalendarPrevious,  CalendarWeekday,  CalendarWeekdays,  CalendarWeeks,  createCalendarController,} from "@/components/ui/calendar"

API reference

CalendarMonths

PropTypeDefault
monthsnumber1
labelsCalendarLabels–

Calendar

PropTypeDefault
labelsCalendarLabels–

Also takes every prop of UI SDK Calendar.

Other exports

CalendarWeekdaysCalendarWeekscreateCalendarControllertype CalendarLabelstype CalendarPropstype CalendarModetype CalendarValuetype DateMatchers

Accessibility

  • 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.