React Simple Date Picker
Simple Date Picker component for React
Install
npm install --save react-simple-datepicker
Usage
Simple example on how to use Datepicker. Just import DatePicker module and styles for it.
;;; Component { super; thisstate = date: } { return <DatePicker date=thisstatedate />; }
Props
date
: (Date) — specifies the start dateminDate
: (Date) — specifies the minimal datemaxDate
: (Date) — specifies the maximal dateclickOnDate
: (Function) — called when the user selects a date
ClassName Props
To specify datepicker styles you can use these props:
datepickerClassName
inputClassName
calendarClassName
monthClassName
prevMonthClassName
nextMonthClassName
dayClassName
dayActiveClassName
dayDisabledClassName
dayFromOtherMonthClassName
License
MIT