NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1626 most downloaded on npm
Customizable Date Picker for React
Last release 4 months ago
15 May 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 59 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
12 years old
292 releases · first in 2014
Fixed a bug when canChangeMonth is set to true (#168).
Release date: 2016-05-24
Fixed a bug when canChangeMonth is set to true (#168).
_Release date: 2016-05-15_ Fix npm release.
Release date: 2016-05-15
Fix npm release.
One column per quarter.
This release mainly improves the component’s API (thus some breaking changes) and add some new props.
Release Date: 2016-05-15
This release mainly improves the component’s API (thus some breaking changes) and add some new props.
Code has been split in multiple components and tests have been rewritten with enzyme. It should be easier to add and test the upcoming new features!
Thanks everyone for the support and for the help on making this component better 🤗 If you have issues or suggestions, don't forget the Gitter room!
Breaking changes
onDay* event handlers receive as third argument an object of modifiers instead of an array.This mean that if you where writing:
onDayClick(e, day, modifiers) {
if (modifiers.indexOf('selected') > -1) {
console.log('This day is selected')
}
}
you must now write:
onDayClick(e, day, modifiers) {
if (modifiers.selected === true) {
console.log('This day is selected')
}
}
or better:
onDayClick(e, day, { selected }) {
if (selected) {
console.log('This day is selected')
}
}
Removed onDayTouchTap. Use onDayClick instead. If you need more granularity over touch events, you can use the new onDayTouchStart and onDayTouchEnd props. See #153 for more details.
Fixed import with CommonJS modules (#136).
This affects code using require('react-day-picker').default or similar syntax, which was required for v1.3.0. Now you can require('react-day-picker') as usual, i.e. without specifying default. If you are using ES2015 modules import DayPicker from 'react-day-picker', this change shouldn't affect you.
formatDay function in LocaleUtils.If you are using your custom LocaleUtils to localize the calendar, you need to implement this function as well, which is required to format the newly added #132 (see the documentation for an example). If you are localizing using moment, this change shouldn't affect you.
New props
New disabledDays and selectedDays props. They receive a function (day) => Bool as value to easily define which day should have the selected or disabled modifiers. See #34 for more details.
So if you were writing something like:
<DayPicker
modifiers={
({ selected: (day) => isDaySelected(day) },
{ disabled: (day) => isDayDisabled(day) })
}
/>
now you can write:
<DayPicker
selectedDays={(day) => isDaySelected(day)}
disabledDays={(day) => isDayDisabled(day)}
/>
Added reverseMonths prop to render the most recent month first. (#141 by @sonrtomas
Added onDayKeyDown, onDayTouchStart, onDayTouchEnd props.
Improvements
aria-* attributes (#132 by limscoder)Bug fixes
fromMonth or endMonthNothing published for this version
Adds React 15 to the peer dependencies.
Release date: 2016-04-10
Adds React 15 to the peer dependencies.
Fixes an issue causing className being overwritten by className prop (\#137).
Release date: 2016-03-02
Fixes an issue causing className being overwritten by className prop (#137).
HTML props are spread to container tag, so to support onBlur, onFocus, etc. (#122, #123)
Release Date: 2016-02-18
Improvements
onBlur, onFocus, etc. (#122, #123)Use a custom caption element with the new `captionElement` prop. A custom caption element is useful, for example, to create a year/month navigation as
Release Date: 2015-12-04
New features
captionElement prop. A custom caption element is useful, for example, to create a year/month navigation as shown in this example. Read #52 for a discussion about this feature.Improvements
addMonths function in DateUtilsFixed bugs
fromMonth or toMonth were set (#97)attr tag with the right abbr in the weekdays row – https://github.com/gpbl/react-day-picker/issues/33#issuecomment-159751186. ⚠️ Please note that the component may now use the CSS defined for abbr tags.Fix an issue with showMonth() (#95) – thanks @JKillian
Minor changes when importing utilities
Release date: 2015-11-19
Minor changes when importing utilities
isSameDay in DateUtils now accepts null or undefined arguments
Release date: 2015-11-12
Improvements
isSameDay in DateUtils now accepts null or undefined argumentsNothing published for this version
Fix regression The last version #0164a38 was missing an element and this change may have broken existing styles. This fix restore the original behavio
New fromMonth and toMonth props. Use the `fromMonth` and `toMonth` props to restrict the months within which the calendar can work. See this example.
Release Date: 2015-11-06
New features
fromMonth and toMonth props. Use the fromMonth and toMonth props to restrict the months within which the calendar can work. See this example.dateUtils includes some useful function to set custom modifierslocaleUtils are the default functions used to localize the Day Picker in english. See https://github.com/gpbl/react-day-picker/issues/46#issuecomment-153498039 for a sample usage of this library.Nothing published for this version
Fixed an issue with Daylight Saving Time for some timezones \(\#71\) #72 (gpbl)
Nothing published for this version
Add support of react-v0.14-rc1 \#61
Release date: 2015-10-08
Add support of react-v0.14-rc1 #61
Fixes a bug causing onCaptionClick to receive always the first month when displaying multiple months \#63
Release date: 2015-10-08
Fixes a bug causing onCaptionClick to receive always the first month when displaying multiple months #63
Fixes a bug when passing a new initialMonth prop to the component that may cause an issue when navigating between months [#57]
Release date: 2015-09-01
Fixes a bug when passing a new initialMonth prop to the component that may cause an issue when navigating between months [#57]
Improve the navigation between months when numberOfMonths is greater than 1
New feature: onCaptionClick #31 (adambbecker)
Release date: 2015-07-25
EnableOutsideDays keeps focus on wrong cell \#29
Let the event from next/previous month click to propagate. #74 (kblcuk)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →