Calendar

NEW

A dependency-free calendar with a selected-day pill that glides from date to date, range support with a live hover preview band, and months that slide in the direction you navigate.

October 2026

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/calendar

API Reference

PropTypeDefaultDescription
mode'single' | 'range''single'Selection mode
valueDate | null | DateRangeundefinedControlled selected date or range
defaultValueDate | null | DateRangenullInitial selection (uncontrolled)
onChange(date: Date | null) => void | (range: DateRange) => voidundefinedSelection change callback
defaultMonthDateundefinedMonth shown initially
minDateDateundefinedEarliest selectable date
maxDateDateundefinedLatest selectable date
isDateDisabled(date: Date) => booleanundefinedPredicate to disable specific dates
weekStartsOn0 | 10First day of the week (0 = Sunday, 1 = Monday)
localestringundefinedBCP 47 locale for formatting
classNamestringundefinedAdditional class for the root