Haedong
001

Calendar

Date
September 2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat

Display only

Customize

Selection
Week
Min
Max
Disabled

Code

<Calendar />

Install

npx shadcn@latest add https://components.haedong.dev/r/calendar.json

Props

DateRange is { from: Date; to?: Date }. Until an end date is picked, only from is set.

PropTypeDescription
selectionMode"none" | "single" | "range"Selection behavior. Defaults to "none" (display only).
value / defaultValueDate | DateRangeSelected value (controlled / uncontrolled). Its type follows selectionMode.
onChange(value) => voidCalled when the selection changes.
month / defaultMonthDateMonth on display (controlled / uncontrolled).
onMonthChange(month: Date) => voidCalled on month navigation. Always receives a Date normalized to the 1st.
minDate / maxDateDateSelectable / navigable range. Compared by day, boundaries inclusive.
disabledDatesDate[]Dates that cannot be selected.
weekStartsOn0 | 1First day of the week. 0 = Sunday (default), 1 = Monday.
classNamestringExtra classes for the root element.