input-moment
React datetime picker powered by momentjs
The design is from https://dribbble.com/shots/1439965-Due-Date-and-Time-Picker.
The icon is from ionicons.
Installation
npm i input-moment --save
Notice: This module requires moment as a peerDependency.
Demo
http://wangzuo.github.io/input-moment
Usage
<InputMomentmoment=thisstatemomentonChange=thishandleChangeonSave=thishandleSaveprevMonthIcon="ion-ios-arrow-left" // defaultnextMonthIcon="ion-ios-arrow-right" // default/>
Check app.js for a working example.
Development
- npm install
- npm start
- http://localhost:8888
License
ISC