2.0.8 • Published 1 year ago

@khan_skadi/month-range-picker v2.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

react-month-range-picker

React component that can select an range of months separated by year

Install in your project

yarn add @khan_skadi/react-month-range-picker
or
npm i @khan_skadi/react-month-range-picker

Run

To run that demo on your own computer:

Clone this repository
yarn install
yarn storybook
Visit http://localhost:6006/

Props

PropstypedefaultValueInfo
columns1 or 21Columns to show
initialYearnumber2020The first initialYear
localestringen-USex: en-US
onRangeSelectfunctionrequiredPass an function to get the RangeParams
calendarClassnamestringoptionalPass an className to style calendar container
headerClassnamestringoptionalPass an className to style calendar header
monthClassnamestringoptionalPass an className to style month item
onRangeSelect: (params: RangeParams) => void

type RangeParams = {
  startMonth: number
  startYear: number
  endMonth: number
  endYear: number
}
2.0.5

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.8

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.1

1 year ago