JSPM

react-day-picker

1.3.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6071487
  • Score
    100M100P100Q209393F
  • License MIT

Flexible date picker component for React

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

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

How to use

Partecipate

  • Gitter room – ask questions and chat with other developers
  • Issues – file bugs and suggestions
  • 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

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 }} />
}

If you are not using ES2015, until this is not fixed you should require the module as:

var DayPicker = require("react-day-picker").default

Install via Bower

bower install react-day-picker --save

The bower package exposes a global DayPicker variable.