Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 981 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 981 Bytes

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 --save

Importing

import * as InputMoment from 'input-moment';

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}
  prevMonthIcon='ion-ios-arrow-left'
  nextMonthIcon='ion-ios-arrow-right'
  className="my-class"
/>

Check app.js for a working example.

Development

License

ISC