# react-month-picker **Repository Path**: kevin402502/react-month-picker ## Basic Information - **Project Name**: react-month-picker - **Description**: Month-Picker Component for React - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-17 - **Last Updated**: 2021-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # React-Month-Picker Month-Picker Component offers a popup month selection panel with responsive layouts. ## Changelogs #### v1.3.0 - Support keyboard event with escape for cancel and enter for confirm #### v1.2.2 - Fixed error in readme #### v1.2.1 - Upgrade babel-loader & update readme #### v1.2.0 - Update for react v15.5.x ## Installation yarn add react-month-picker or npm install react-month-picker --save ## Snapshots ###### Desktop View (Picking A Months)  ###### Desktop View (Picking Span of Months)  ###### Mobile View (Picking A Months)  ###### Mobile View (Picking Span of Months)  ## Demo [Online Demo](http://pub.lvrian.com/react-month-picker/examples/demo.html) Demo file in repository: ./examples/demo.html ## Example ./examples/demo.jsx #### Import component into your react project ``` import Picker from 'react-month-picker' ``` ``` render() { let pickerLang = { months: ['Jan', 'Feb', 'Mar', 'Spr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] , from: 'From', to: 'To' } , mvalue = {year: 2015, month: 11} , mrange = {from: {year: 2014, month: 8}, to: {year: 2015, month: 5}} let makeText = m => { if (m && m.year && m.month) return (pickerLang.months[m.month-1] + '. ' + m.year) return '?' } return (