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
Check out the examples to see its features.
Quick start
Installing via npm
npm install kat-day-picker --save
Using unpkg CDN
Installing via Bower
bower install kat-day-picker --save
The bower package exposes a global DayPicker
variable.
Example
;; { return day === 0;} Component state = selectedDay: { if disabled return; if selected this else this; } { return <DayPicker initialMonth= 2016 1 disabledDays= sunday selectedDays= DateUtils onDayClick= thishandleDayClick />; }
See Basic usage for a deeper explanation of the example above.
Docs and examples
Get support
- Tag with
react-day-picker
your questions on Stackoverflow - Join the Gitter room for immediate help
Contribute
- File bugs and feature requests in the issues page
- Check out the source code on Github
- Pull requests are welcome! If you are planning a pull request with lot of changes, please add an issue to discuss your idea first
- See how to start the project locally here