react-day-picker with Radium styles
react-day-picker is a flexible date picker component for React.
- no external dependencies
- select days, ranges, whatever using CSS modifiers
- simple localization, even with moment.js
- customizable style and CSS Modules support
- navigable via keyboard, ARIA support
Check out the examples to see its features.
Quick start
Add the dependency to your project
npm install react-day-picker --save # or with yarn: yarn add react-day-picker
Using unpkg
Include the component without installing:
See this jsfiddle as example.
Using bower
bower install react-day-picker
Example
;; { return day === 0;} { return ;} Component state = selectedDay: { superprops; thishandleDayClick = thishandleDayClick; } { if disabled return; this } { return <DayPicker initialMonth= 2017 1 disabledDays= sundays selectedDays= thisstateselectedDay 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 Stack Overflow - Join the Gitter room for immediate help
- Tip: Fork https://jsfiddle.net/gpbl/fordjxht/6 to help us reproducing your problem
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