input-moment
React datetime picker powered by momentjs
This is a fork of input-moment that
aims to add more functionality and make less assumptions about environment.
Notice: This module requires moment as a peerDependency.
Usage
<InputMoment
moment={this.state.moment}
onChange={this.handleChange}
showSeconds={true}
locale="en"
/>
<Calendar
moment={this.state.moment}
onChange={this.handleChange}
locale="en"
/>
<Clock
moment={this.state.moment}
onChange={this.handleChange}
showSeconds={true}
locale="en"
/>
Check app.js
for a working example.
Development
Work Left To Do
- Get rid of LESS/CSS in favor of using react-stylesheet.
- ES6-ify the code.
License
ISC