kouloughli-picker
v1.5.0
Published
Caravane2 Reactjs DatePicker
Downloads
2
Readme
kouloughli-picker
Caravane2 Reactjs DatePicker
Install
npm install --save kouloughli-picker
Usage
import React, { Component } from 'react'
import RangeDatePicker from 'kouloughli-picker'
import 'kouloughli-picker/dist/index.css'
class Example extends Component {
render() {
return <RangeDatePicker
startDate={new Date()}
endDate={new Date()}
onChange={(startDate, endDate) => console.log(startDate, endDate)}
minDate={new Date(2000, 0, 1)}
maxDate={new Date(2060, 0, 1)}
dateFormat="D"
monthFormat="MMM YYYY"
startDatePlaceholder="Start Date"
endDatePlaceholder="End Date"
disabled={false}
className="my-own-class-name"
startWeekDay="monday"
/>
}
}
License
MIT © [Kouloughli Hemza](https://github.com/Kouloughli Hemza)