Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 3.1 KB

README.md

File metadata and controls

72 lines (52 loc) · 3.1 KB

title

screen shot

react-day-picker is a flexible date picker component for React.

Look at some examples showing all its features!

build status coveralls npm downloads npm version Bower

Documentation

Contribute

  • Github – pull requests are welcome!
  • Issues – file bugs and suggestions
  • Gitter room – ask questions and chat with other developers

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.