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.
Requirements
This module has peer dependencies: react, react-dom, and moment.
These dependencies are not included in the build to reduce duplicate dependencies as a result of minor version differences.
This allows for a flat dependency graph and should significantly reduce build size.
Read More Here
Usage
import {InputMoment, DatePicker, TimePicker} from 'react-input-moment';
<InputMoment
moment={this.state.moment}
onChange={this.handleChange}
showSeconds={true}
locale="en"
/>
<DatePicker
moment={this.state.moment}
onChange={this.handleChange}
locale="en"
/>
<TimePicker
moment={this.state.moment}
onChange={this.handleChange}
showSeconds={true}
locale="en"
/>
Check app.js
for a working example.
Development
License
ISC