input-moment-es

0.0.3 • Public • Published

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://borjamazo.github.io/input-moment

Usage

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

Package Sidebar

Install

npm i input-moment-es

Weekly Downloads

2

Version

0.0.3

License

ISC

Unpacked Size

322 kB

Total Files

12

Last publish

Collaborators

  • borjamazo