react-day-picker
is a flexible date picker component for React.
- no external dependencies
- select days, ranges, whatever using CSS modifiers
- ready for localization, even with moment.js
- customizable style
- navigable via keyboard, ARIA support
As with every other well-written React component you can easily include this in your own code to – for example – create a DateInput
which combines an <input />
and a react-day-picker
.
Here’s a screenshot of an example component I created at work, based upon this example:
That’s a <DayPicker />
contained in a <Popover position="bottom" align="left" />
next to an <input type="text" />
contained in a <StreamSettingsForm />
contained in a <Modal />
you see there 😉
Leave a comment