Package Exports
- ny-input-moment
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ny-input-moment) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 --saveNotice: This module requires moment as a peerDependency.
Demo
http://wangzuo.github.io/input-moment
Usage
<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.
Development
- npm install
- npm start
- http://localhost:8080
License
ISC