title

screen shot

react-day-picker is a flexible date picker component for [React](https://facebook.github.io/react/). * no external dependencies * select [days](http://react-day-picker.js.org/examples?selectable), [ranges](http://react-day-picker.js.org/examples?range), whatever using CSS modifiers * ready for [localization](http://react-day-picker.js.org/examples?localized), even with [moment.js](http://react-day-picker.js.org/examples?localized) * customizable [style](https://github.com/gpbl/react-day-picker/blob/master/src/style.css) * navigable via keyboard, ARIA support Check out the [examples](http://react-day-picker.js.org/examples) to see its features. [![npm version](https://img.shields.io/npm/v/react-day-picker.svg?style=flat-square)](https://www.npmjs.com/package/react-day-picker) [![Bower](https://img.shields.io/bower/v/react-day-picker.svg?style=flat-square)](http://bower.io/search/?q=react-day-picker) [![build status](https://img.shields.io/travis/gpbl/react-day-picker/master.svg?style=flat-square)](https://travis-ci.org/gpbl/react-day-picker) [![coveralls](https://img.shields.io/coveralls/gpbl/react-day-picker.svg?style=flat-square)](https://coveralls.io/r/gpbl/react-day-picker?branch=master) [![Code Climate](https://img.shields.io/codeclimate/github/kabisaict/flow.svg?style=flat-square)](https://codeclimate.com/github/gpbl/react-day-picker) [![npm downloads](https://img.shields.io/npm/dm/react-day-picker.svg?style=flat-square)](http://npm-stat.com/charts.html?package=react-day-picker) ## Quick start **Installing via npm** ``` npm install react-day-picker --save ``` **Using unpkg CDN** ```html ``` **Installing via Bower** ``` bower install react-day-picker --save ``` The bower package exposes a global `DayPicker` variable. ### Example ```js import React from 'react'; import DayPicker, { DateUtils } from "react-day-picker"; function sunday(day) { return day.getDay() === 0; } class MyComponent extends React.Component { state = { selectedDay: new Date(), } handleDayClick(e, day, { selected, disabled }) { if (disabled) { return; } if (selected) { this.setState({ selectedDay: null }) } else { this.setState({ selectedDay: day }); } }, render() { return ( DateUtils.isSameDay(this.state.selectedDay, day) } onDayClick={ this.handleDayClick.bind(this) } />); } } ``` See [Basic usage](http://react-day-picker.js.org/Basic.html) for a deeper explanation of the example above. ### Docs and examples * [Examples with code](http://react-day-picker.js.org/examples) * [Documentation](http://react-day-picker.js.org) * [Basic usage](http://react-day-picker.js.org/Basic.html) * [Use of modifiers](http://react-day-picker.js.org/Modifiers.html) * [API](http://react-day-picker.js.org/API.html) * [Styling](http://react-day-picker.js.org/Styling.html) * [Localization](http://react-day-picker.js.org/Localization.html) * [Tips](http://react-day-picker.js.org/Tips.html) * [Utilities](http://react-day-picker.js.org/Utilities.html) * [Changelog](https://github.com/gpbl/react-day-picker/blob/master/CHANGELOG.md) ### Get support * Tag with `react-day-picker` your questions on [Stackoverflow](http://stackoverflow.com/questions/tagged/react-day-picker?sort=newest) * Join the [Gitter room](https://gitter.im/gpbl/react-day-picker) for immediate help ### Contribute * File bugs and feature requests in the [issues page](https://github.com/gpbl/react-day-picker/issues) * Check out the source code on [Github](https://github.com/gpbl/react-day-picker) * 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](http://react-day-picker.js.org/Contributing.html)