Skip to content

QuatroCode/input-moment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 40.6%
  • TypeScript 30.8%
  • CSS 23.0%
  • HTML 5.6%