Data Display

Calendar

A calendar displays one or more date grids and allows users to select a single date.

A calendar displays one or more date grids and allows users to select a single date.

October 2026

Component props#

NameTypeDescription
mode'single' | 'multiple' | 'range'Selection mode (default: "single")
selectedDate | Date[] | DateRangeSelection for the current mode
onSelect(selected: Date | Date[] | DateRange | undefined) => voidCalled when the selection changes in any mode
valueDateControlled selected date (compat prop for mode="single")
defaultValueDateDefault selected date
minValueDateMinimum selectable date
maxValueDateMaximum selectable date
isDisabledbooleanDisables the calendar
isReadOnlybooleanMakes the calendar read-only
captionLayout'label' | 'dropdown' | 'dropdown-months' | 'dropdown-years'Month/year caption style (default: "label")
showOutsideDaysbooleanShows muted days from adjacent months (default: true)
buttonVariantButtonVariantButton style used for day and nav buttons (default: "quiet")
classNamesClassNamesMerged over the default react-day-picker class names
onChange(date: Date | undefined) => voidCalled when the date changes in mode="single". Receives undefined when deselected.