React datetime picker powered by momentjs
Switch branches/tags
Nothing to show
Clone or download
Latest commit a0451eb Oct 9, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__ update test Aug 7, 2017
example react 16 fix #82 Oct 9, 2017
src add minStep, hourStep #64 Sep 15, 2017
.babelrc es6 Jun 5, 2017
.gitignore add npmignore Sep 1, 2017
.npmignore update slider Sep 15, 2017
.travis.yml add travis Mar 14, 2017
LICENSE add license title Jul 3, 2016
README.md Update README.md Sep 22, 2017
index.js add lib Aug 25, 2016
package.json 0.4.0 Oct 9, 2017
webpack.config.js update builds Jun 5, 2017
yarn.lock react 16 fix #82 Oct 9, 2017

README.md

input-moment

npm Build Status styled with prettier

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

<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

License

ISC