npm / @daypicker/react
@daypicker/react
What changed in @daypicker/react 9 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
58 breaking10 deprecations3 new APIs and options3 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@daypicker/react 1058 changes
Breaking changes 46
The locale export moved to @daypicker/ethiopic.
A single Chevron component replaces IconLeft and IconRight; use its orientation prop to render the appropriate icon.
Class name keys changed, deprecated v8 compatibility keys were removed, and custom class names may need updating.
The deprecated compatibility key was removed; use disabled instead.
The deprecated compatibility key was removed; use selected instead.
The deprecated compatibility key was removed; use button_previous and button_next instead.
The deprecated compatibility key was removed; use month_grid instead.
Removed the deprecated Button customization entry.
Removed; use PreviousMonthButton and NextMonthButton instead.
CSS variables are scoped under .rdp-root; move overrides there if they were previously set on :root or .rdp.
Apps that installed date-fns only for DayPicker's peer dependency or locale objects can remove it after moving locale imports.
Replaces the removed isMatch utility alias.
Interactive days now render a DayButton; customize it for day content or extra DOM event handlers.
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 from react-day-picker.
Removed deprecated compatibility typing for classNames and styles.
Use endMonth in place of the removed toMonth and toYear navigation boundary props.
Replaces the removed formatMonthCaption formatter alias.
Removed this deprecated alias.
Formatters now return strings; move React rendering into a custom component when markup is needed.
Replaces the removed formatYearCaption formatter alias.
Removed this deprecated prop; applications using it must update before upgrading to v10.
Removed; use startMonth instead.
Removed; use startMonth with the first month of that year.
Use hidden with before or after matchers in place of removed fromDate and toDate props.
Removed; use autoFocus instead.
Removed alias; use rangeIncludesDate instead.
Removed alias; use labelGrid instead.
Removed alias; use labelDayButton instead.
Replaces labelDay, and its accessible names changed; update label overrides, translations, and queries.
Replaces the removed labelCaption alias.
Non-Gregorian calendars moved to separate add-on packages, which must be installed and used for calendar imports.
Removed; use a custom DayButton component.
Removed this deprecated event prop; applications using it must update before upgrading to v10.
Replaces the deprecated DayPickerDefaultProps type; a more specific prop type may also be used.
Replaces the removed isDateInRange utility alias.
Removed this deprecated subpath; the notes direct users to use react-day-picker/persian instead.
Use this subpath instead of the removed react-day-picker/jalali subpath.
Use startMonth in place of the removed fromMonth and fromYear navigation boundary props.
Deprecated v8 compatibility keys were removed; review custom styles for changed markup and CSS names.
The deprecated compatibility key was removed; use month_grid instead.
Removed; use endMonth instead.
Removed; use endMonth with the last month of that year.
Deprecated type exports from this module were removed.
Replaces removed hooks including useNavigation and useActiveModifiers; it exposes navigation methods and getModifiers.
New APIs and options 3
Calendar add-on packages are now published under the @daypicker/* scope and should be installed alongside @daypicker/react for non-Gregorian calendars.
Introduced as the preferred package name for new projects; the react-day-picker package remains available for compatibility with the same DayPicker API.
Locale objects can now be imported from this package subpath instead of date-fns/locale.
Behavior and default changes 3
The next-month button's accessible label changed; update overrides, translations, and tests.
The previous-month button's accessible label changed; update overrides, translations, and tests.
When passing selected, handle selection changes with onSelect; this also applies to multiple and range modes.
Fixes and other changes 6
Focus is preserved when a controlled month change replaces the focused day.
Importing a locale subpath no longer loads all date-fns locales.
Imports date-fns functions and DayPicker locales from their subpaths.
Inline styles are now applied to all component slots.
Added @types/react as an optional peer dependency for strict package managers.
The expected month is now shown after dropdown changes in multi-month calendars.
@daypicker/react 922 changes
Breaking changes 12
Class-name keys changed, including
daytoday_button,day_disabledtodisabled, andcelltoday; update custom class-name mappings.Use this data attribute instead of the removed
multiple_monthsclass name.Use this data attribute instead of the removed
with_weeknumberclass name.Use
formatDayfor text content in place of the removedDayContentcomponent.Formatters now return strings; move React rendering into a custom component.
The next-month button's accessible label changed; update overrides, translations, and accessible-name selectors.
The week-number accessible label changed; update overrides, translations, and tests.
Use
MonthCaptionin place of the v8Captioncomponent.Replace the v8 bundled CSS import path with this path.
Use this updated path when importing the CSS module.
Use
Weekin place of the v8Rowcomponent.Use
Weekdaysin place of the v8HeadRowcomponent.
Deprecations 10
Use
dateMatchModifiersin place of the deprecatedisMatchutility alias.Use
endMonthin place of deprecatedtoMonthandtoYearnavigation boundaries.Use
formatCaptionin place of the deprecatedformatMonthCaptionalias.Use
formatYearDropdownin place of the deprecatedformatYearCaptionalias.Use
PropsMultiin place of the deprecatedDayPickerMultiplePropstype.Use
PropsRangein place of the deprecatedDayPickerRangePropstype.Use
PropsSinglein place of the deprecatedDayPickerSinglePropstype.Use
rangeIncludesDatein place of the deprecatedisDateInRangeutility alias.Use
startMonthin place of deprecatedfromMonthandfromYearnavigation boundaries.Use
useDayPickerin place of the deprecateduseNavigationhook.