react-minimal-datepicker

1.1.4 • Public • Published

react-minimal-datepicker

npm

screenshot

usage:

npm install --save react-minimal-datepicker
import ReactMinimalDatepicker from 'react-minimal-datepicker';
// inside your render method:
<ReactMinimalDatepicker/>

available props:

  • onChange - is called when datepicker's value is changed. You can specify format of the value with "format" prop
  • format - string that momentjs will use to parse datepicker's value in onChange
  • onDayChange, onMonthChange, onYearChange
  • numberOfYearsToShow
  • containerClassName
  • stylesForYearInput, stylesForMonthInput, stylesForDayInput
  • classNameForYearInput, classNameForMonthInput, classNameForDayInput
  • selected - timestamp(number or string) that defines datepicker's value

Readme

Keywords

none

Package Sidebar

Install

npm i react-minimal-datepicker

Weekly Downloads

12

Version

1.1.4

License

ISC

Last publish

Collaborators

  • yauheniy