Package Exports
- react-day-picker
- react-day-picker/DayPicker
- react-day-picker/lib/style.css
- react-day-picker/moment
- react-day-picker/utils
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-day-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-day-picker
react-day-picker is a flexible date picker component for React.
- select days, ranges, whatever using CSS modifiers
- easily change style and add content to days cells
- display multiple months
- ready for i18n, with moment.js or any other library
- navigable via keyboard, ARIA support
- no external dependencies
Documentation and help
Quick start
Install via npm
npm install react-day-picker --save
and use it in your React components:
import DayPicker from "react-day-picker";
function isSunday(day) {
return day.getDay() === 0;
}
function MyComponent() {
return <DayPicker initialMonth={ new Date(2016, 1) } modifiers={{ isSunday }} />
}
Install via Bower
bower install react-day-picker --save
The bower package exposes a global DayPicker
variable.