A month picker input and calendar for React.
Switch branches/tags
Nothing to show
Clone or download
Latest commit aa0c7ea Oct 18, 2018



codeship status

A month picker input and calendar for React.


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 and name are supported
onChange Function: (maskedValue: string, year: number, month: number) => any - onChange callback, receives maskedValue, year and month (begins with 0) as arguments
closeOnSelect boolean false Close calendar on month select
onChangeYearUpdate boolean true Handle year update with previous and next
rangePicker boolean false Will show the range default of 12 months
inputRef Function: (ref) => any - Modification of calendar input


npm install react-month-picker-calendar --save


React-Month-Picker-Calendar generates a year/month calendar opened on field focus.

var MonthPickerInput = require('react-month-picker-calendar');

  value={new Date()}
  onChange={function(selectedYear, selectedMonth) {
    console.log(selectedYear, selectedMonth);


Copyright (c) 2018. MIT License.

Acknowledgement This package is originally developed by Viacheslav Kysil