# react-day-picker-substyled

> Flexible date picker component for React

Latest version **2.2.5** (published 2016-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-day-picker-substyled
pnpm add react-day-picker-substyled
yarn add react-day-picker-substyled
bun add react-day-picker-substyled
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.5 |
| Published | 2016-09-20 |
| First published | 2016-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Giampaolo Bellavite |
| Maintainers | frontendphil, jfschwarz |
| Keywords | react, react-component, component, calendar, date-picker, datepicker, date, picker, moment, momentjs |

## Links

- npm: https://www.npmjs.com/package/react-day-picker-substyled
- Repository: https://github.com/effektif/react-day-picker-substyled
- Issues: https://github.com/effektif/react-day-picker-substyled/issues
- npm.io page: https://npm.io/package/react-day-picker-substyled

## Dependencies (2)

- [radium](https://npm.io/package/radium.md) ^0.18.1
- [substyle](https://npm.io/package/substyle.md) ^3.0.0

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 2.2.5 (latest) — 2016-09-20
- 2.2.4 — 2016-07-27
- 2.2.3 — 2016-07-27
- 2.2.2 — 2016-07-27
- 2.2.1 — 2016-04-14
- 2.2.0 — 2016-04-14
- 2.1.3 — 2016-03-22
- 2.1.2 — 2016-03-22
- 2.1.1 — 2016-03-16
- 2.1.0 — 2016-02-17
- 2.0.1 — 2016-02-16
- 2.0.0 — 2016-02-16

## README

<p align="center">
<img width="359"  style="margin: 0 auto" alt="title" src="https://cloud.githubusercontent.com/assets/120693/12210154/46ea65d2-b658-11e5-9328-8abaaa9fbcdd.png">
</p>
<p align="center">
<img width="297" style="margin: 0 auto"  alt="screen shot" src="https://cloud.githubusercontent.com/assets/120693/12312069/74c136d6-ba5c-11e5-8eae-680ecd200f95.png">
</p>

react-day-picker is a flexible date picker component for [React](https://facebook.github.io/react/).

* no external dependencies
* select [days](http://www.gpbl.org/react-day-picker/examples/#selectable), [ranges](http://www.gpbl.org/react-day-picker/examples/#range), whatever using CSS modifiers
* ready for i18n, with [moment.js](http://www.gpbl.org/react-day-picker/examples/#localized) or [any other library](http://www.gpbl.org/react-day-picker/examples/#localizedCustom)
* customizable [style](https://github.com/gpbl/react-day-picker/blob/master/src/style.css)
* navigable via keyboard, ARIA support

Look at [some examples](http://gpbl.org/react-day-picker/examples) showing all its features!

[![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)](https://www.npmjs.com/package/react-day-picker)
[![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)


### How to use

* [Examples with code](http://gpbl.org/react-day-picker/examples)
* [Documentation](http://gpbl.org/react-day-picker)
    * [Getting started](http://gpbl.org/react-day-picker/docs/GettingStarted.html)
    * [API](http://www.gpbl.org/react-day-picker/docs/API.html)
    * [Styling](http://www.gpbl.org/react-day-picker/docs/Styling.html)
    * [Localization](http://www.gpbl.org/react-day-picker/docs/Localization.html)
    * [Tips](http://www.gpbl.org/react-day-picker/docs/Tips.html)
    * [Utilities](http://www.gpbl.org/react-day-picker/docs/Utilities.html)
* [Changelog](CHANGELOG.md)

### Partecipate

* [Gitter room](https://gitter.im/gpbl/react-day-picker) – ask questions and chat with other developers
* [Issues](https://github.com/gpbl/react-day-picker/issues) – file bugs and suggestions
* 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://www.gpbl.org/react-day-picker/docs/Contributing.html)

## Quick start

**Install via npm**

```
npm install react-day-picker --save
```

and use it in your React components:

```jsx
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](https://github.com/gpbl/react-day-picker/issues/136)
you should require the module as:

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

**Install via Bower**

```
bower install react-day-picker --save
```

The bower package exposes a global `DayPicker` variable.

---
_Source: https://npm.io/package/react-day-picker-substyled · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
