npm / react-day-picker
react-day-picker
What changed in react-day-picker 8 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
81 breaking9 deprecations18 new APIs and options5 behavior and defaults1 tooling17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-day-picker 1072 changes
Breaking changes 58
Moved the amET locale export to the Ethiopic calendar package.
Use one Chevron component for navigation icons, checking props.orientation to choose the left or right icon.
CSS class keys and rendered markup changed after v8; update custom class names to the v10 names, and replace removed compatibility keys.
Removed deprecated button customization entry; use PreviousMonthButton and NextMonthButton.
Replaces the removed isMatch utility alias.
Removed compatibility key; use disabled instead.
Removed compatibility key; use selected instead.
Buddhist calendar support is provided by a separate add-on package.
Non-Gregorian Ethiopic calendar support is now published as a standalone package, including the moved amET locale export.
Hebrew calendar support is provided by a separate add-on package.
Hijri calendar support is provided by a separate add-on package.
Non-Gregorian Persian calendar support is now published as a standalone package.
Use this stylesheet import path in place of react-day-picker/dist/style.css.
Use this CSS module import path in place of react-day-picker/dist/style.module.css.
Introduced as the preferred package name; update package installation and imports. The react-day-picker package name remains available for compatibility.
Deprecated compatibility APIs, including old prop names, aliases, and component slots, were removed.
Removed deprecated compatibility typing for classNames and styles.
Replaces the removed toMonth and toYear navigation boundary props.
Removed deprecated alias; use formatCaption instead.
Removed deprecated DateLib export.
Formatters now return strings; move React rendering into a custom component when markup is needed.
Removed deprecated alias; use formatYearDropdown instead.
Replaces the removed formatYearCaption formatter alias.
Removed deprecated navigation prop; use hidden before and optionally startMonth.
Removed deprecated navigation prop; use startMonth instead.
Removed deprecated navigation prop; use startMonth with a Date instead.
Use before or after matchers with hidden in place of fromDate or toDate; optionally combine with startMonth or endMonth to limit navigation.
Removed deprecated focus prop; use autoFocus instead.
Removed deprecated alias; use rangeIncludesDate instead.
Removed deprecated alias; use dateMatchModifiers instead.
Removed deprecated alias; use labelGrid instead.
Removed deprecated alias; use labelDayButton instead.
Replaces labelDay and has changed accessible-name output; update overrides, translations, and tests querying buttons by accessible name.
The previous-month accessible label changed; update label overrides, translations, and tests.
The week-number accessible label changed; update label overrides, translations, and tests.
Removed compatibility key; use button_previous and button_next instead.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom DayButton component.
Removed deprecated event prop; use a custom WeekNumber component.
Replaces DayPickerDefaultProps, or use a more specific prop type.
Replaces the removed isDateInRange utility alias.
CSS variables are now scoped under .rdp-root; move overrides there if they were previously set on :root or .rdp.
Removed deprecated Jalali calendar subpath; use the Persian calendar package instead.
Replaces the removed fromMonth and fromYear navigation boundary props.
Review custom styles because the default CSS and rendered markup changed; deprecated v8 compatibility keys were removed.
Removed compatibility key; use month_grid instead.
Removed deprecated navigation prop; use hidden after and optionally endMonth.
Removed deprecated navigation prop; use endMonth instead.
Removed deprecated navigation prop; use endMonth with a Date instead.
Removed; use endMonth with the last month of that year instead.
Removed deprecated type exports from the types/deprecated module.
Replaces useNavigation and provides goToMonth, nextMonth, and previousMonth; it also replaces useActiveModifiers with its getModifiers helper.
Deprecations 1
The package name remains available for compatibility, but new projects and upgraded imports should use @daypicker/react.
New APIs and options 5
Non-Gregorian Buddhist calendar support is now published as a standalone package.
Non-Gregorian Hebrew calendar support is now published as a standalone package.
Non-Gregorian Hijri calendar support is now published as a standalone package.
Introduced the preferred scoped package name for new projects, including its style sheet import.
Locale objects can be imported from this package subpath instead of date-fns/locale.
Behavior and default changes 2
The next-month accessible label changed; update label overrides, translations, and tests.
When passing selected, handle selection changes with onSelect; use custom modifiers instead when only marking days visually.
Fixes and other changes 6
Date-fns functions and DayPicker locales are imported from subpaths.
Importing a locale subpath no longer loads all date-fns locales.
Focus is preserved when controlled month changes replace the focused day.
Inline styles now apply to all component slots.
Adds @types/react as an optional peer dependency.
Fixed multi-month dropdown navigation so changing month or year shows the expected month.
react-day-picker 953 changes
Breaking changes 21
Calendars now render empty grid cells when endMonth clips the calendar; brittle snapshots or custom CSS depending on the old markup may need updates.
The custom component slot is renamed to MonthCaption.
Navigation button class name keys are now button_previous and button_next.
The day class name key now targets the day cell; use day_button for the day button.
The day_hidden class name key is renamed to hidden.
The caption class name key is renamed to month_caption.
The day_outside class name key is renamed to outside.
The day_range_end class name key is renamed to range_end.
The day_range_middle class name key is renamed to range_middle.
The day_range_start class name key is renamed to range_start.
The day_today class name key is renamed to today.
Styles were simplified and CSS classes updated, so custom CSS styles will likely break; new CSS variables are available for customization.
Custom components now have a new API, which may break existing implementations; support was updated.
date-fns can be removed if it was installed only because v8 required it as a peer dependency.
DayContent is removed; use formatDay for text content or customize DayButton.
The build system was updated to ESM and CommonJS, which could break some custom bundlers.
The bundled stylesheet import moves from react-day-picker/dist/style.css to react-day-picker/style.css.
The CSS module import moves from react-day-picker/dist/style.module.css to react-day-picker/style.module.css.
When selected is supplied, selection changes must be handled with onSelect; this also applies to multiple and range modes.
Removed the useInput hook; consult the Input fields guide for alternatives.
Replace useNavigation with useDayPicker.
Deprecations 8
Replace the deprecated type name with PropsMulti.
Replace the deprecated type name with PropsRange.
Replace the deprecated type name with PropsSingle.
Deprecated in v9; use startMonth instead.
Deprecated in v9; use startMonth with the first month of that year.
Replace this deprecated utility alias with dateMatchModifiers.
Deprecated in v9; use endMonth instead.
Deprecated in v9; use endMonth with the last month of that year.
New APIs and options 12
The DayPicker root element receives a default
langprop.Range mode can start a new range when a full range is already selected.
A Hijri (Umm al-Qura) calendar is available through a dedicated import path.
Persian calendars now support narrow weekday formatting.
Adds an experimental prop to help deal with historical time zones with second offsets.
Adds an experimental prop that keeps calendar math at noon in the chosen time zone to avoid historical drift and duplicate or missing days.
Added a caption layout named dropdown-months.
Added a caption layout named dropdown-years.
Added the hideNavigation prop.
Added the hideWeekdayRow prop.
Added support for the Jalali Calendar.
Added support for UTC dates.
Behavior and default changes 2
Built-in locales now provide translated labels, so developers no longer need to supply translated labels through the labels prop.
Accessibility was enhanced to better comply with WCAG 2.1 recommendations; updated ARIA labels may require new translations or test selectors.
Fixes and other changes 10
Corrects Japanese Hiragana locale labels.
Corrects Northern Sami locale labels.
Adds the correct type declaration for the style.css export, improving type-safe usage of the stylesheet export.
Array modifiers now match dates by day, correcting modifier matching behavior.
Hebrew date conversion now handles timezones correctly.
Disabled focused days can no longer be selected, fixing the v9.11.2 regression affecting JSDOM tests.
Focused disabled days remain focusable instead of losing keyboard focusability.
Modifiers now honor the timeZone prop, producing timezone-aware modifier behavior.
Selection logic for range mode was improved.
Typings and props were improved for better compatibility with TypeScript strict mode; some typings were renamed or deprecated.
react-day-picker 86 changes
Breaking changes 2
The DayPickerInput component is replaced by the useInput hook.
The useInput hook replaces the DayPickerInput component.
New APIs and options 1
Selection modes are added for single, multiple, and range selection.
Behavior and default changes 1
ARIA support is improved.
Tooling 1
The release adds native TypeScript support.
Fixes and other changes 1
React 19 is now supported in v8, helping projects adopt newer React versions without peer dependency warnings.