Calendar

A date picker calendar built on react-day-picker with themed styling. Supports single date, range, and multiple date selection modes.

Single Date Selection

January 2025
const [date, setDate] = React.useState<Date | undefined>(new Date())

<Calendar
  mode="single"
  selected={date}
  onSelect={setDate}
/>

Static Display

January 2025
2930311234
567891011
12131415161718
19202122232425
2627282930311
<Calendar />

API Reference

PropTypeDefaultDescription
mode"single" | "range" | "multiple"Selection mode. Single selects one date, range selects a start and end, multiple allows selecting many dates.
selectedDate | DateRange | Date[]The currently selected date(s). Type depends on the mode prop.
onSelect(date: Date | DateRange | Date[] | undefined) => voidCallback fired when the selection changes.
showOutsideDaysbooleantrueWhether to display days from adjacent months in the calendar grid.
classNamestringAdditional CSS classes to apply to the calendar container.