Skip to content

JonathanBruce/react-day-picker

 
 

Repository files navigation

react-day-picker

build status coveralls npm downloads npm version Bower

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

screen shot 2015-11-11 at 15 51 07

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.

About

Flexible date picker component for React

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.5%
  • CSS 4.5%