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.
npm i input-moment --saveNotice: This module requires moment as a peerDependency.
http://wangzuo.github.io/input-moment
<InputMoment
moment={this.state.moment}
onChange={this.handleChange}
onSave={this.handleSave}
minStep={1} // default
hourStep={1} // default
prevMonthIcon="ion-ios-arrow-left" // default
nextMonthIcon="ion-ios-arrow-right" // default
/>Check app.js for a working example.
- npm install
- npm start
- http://localhost:8080
ISC