# max-month-picker

> Custom month picker based on react-month-picker-input

Latest version **1.0.4** (published 2018-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install max-month-picker
pnpm add max-month-picker
yarn add max-month-picker
bun add max-month-picker
```

## 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 | 1.0.4 |
| Published | 2018-03-01 |
| First published | 2018-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 198.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Carlos Max |
| Maintainers | carlosmax |
| Keywords | react, month picker |

## Links

- npm: https://www.npmjs.com/package/max-month-picker
- Repository: https://github.com/carlos-max/react-month-picker-input
- Homepage: https://github.com/carlos-max/react-month-picker-input#readme
- Issues: https://github.com/carlos-max/react-month-picker-input/issues
- npm.io page: https://npm.io/package/max-month-picker

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^15.6.1
- [react-dom](https://npm.io/package/react-dom.md) ^15.6.1
- [react-input-mask](https://npm.io/package/react-input-mask.md) ^1.0.7

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2018-03-01
- 1.0.3 — 2018-03-01
- 1.0.2 — 2018-03-01
- 1.0.1 — 2018-03-01
- 1.0.0 — 2018-03-01

## README

React-Month-Picker-Input
====================

A month picker input and calendar for [React](http://facebook.github.io/react/index.html).


## API

| Name | Types | Default | Description |
|---|---|---|---|
| year | number | void | Preselect year in calendar |
| month | number (0..11) | void | Preselect month in calendar. If both year and month are specified then input field will be also prepopulated |
| inputProps | object | empty object | Input field props, only `id`, `name`, 'className' and 'disabled' are supported |
| onChange | Function: (maskedValue: string, year: number, month: number) => any | - | onChange callback, receives `maskedValue`, `year` and `month` (begins with 0) as arguments |

## Installation

```
npm install max-month-picker --save
```

## Usage

React-Month-Picker-Input generates an input field and year/month calendar opened on field focus.

```js
var MonthPickerInput = require('react-month-picker-input');
require('react-month-picker-input/dist/react-month-picker-input.css');

<MonthPickerInput
  id='string'
  className="form-control"
  value={new Date()}
  onChange={function(selectedYear, selectedMonth) {
    console.log(selectedYear, selectedMonth);
  }}
/>
```

## License

Copyright (c) [MIT](LICENSE) License.

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