react-input-dateTime

1.0.2 • Public • Published

THIS IS A FORK OF input-moment

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 hb-input-moment --save

Notice: This module requires moment as a peerDependency.

Old Demo

http://wangzuo.github.io/input-moment

Usage

Basic example

<InputMoment
  moment={this.state.moment}
  onChange={this.handleChange}
  onSave={this.handleSave}
/>

Props

Prop Description Default
dateOnly Boolean. If it should show only the date picker. false
timeOnly Boolean. If it should show only the time picker. false
prevMonthIcon String. Class string for the previous month icon. 'ion-ios-arrow-left'
nextMonthIcon String. Class string for the next month icon. 'ion-ios-arrow-right'
locale String. Locale to display date time in. 'en'
hideSave Boolean. should hide the save button. 'false'

Development

License

ISC

Package Sidebar

Install

npm i react-input-dateTime

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • codemeasandwich