https://github.com/codemeasandwich/react-datetime
React datetime picker powered by momentjs https://wangzuo.github.io/input-moment
https://github.com/codemeasandwich/react-datetime
Last synced: over 1 year ago
JSON representation
React datetime picker powered by momentjs https://wangzuo.github.io/input-moment
- Host: GitHub
- URL: https://github.com/codemeasandwich/react-datetime
- Owner: codemeasandwich
- License: isc
- Created: 2016-08-01T11:19:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-02T05:25:46.000Z (almost 10 years ago)
- Last Synced: 2025-02-24T23:51:21.898Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**THIS IS A FORK OF [input-moment](https://www.npmjs.com/package/react-moment-datetimepicker)**
# input-moment
React datetime picker powered by [momentjs](http://momentjs.com)
The design is from https://dribbble.com/shots/1439965-Due-Date-and-Time-Picker.
The icon is from [ionicons](http://ionicons.com/).
### Installation
``` sh
npm i hb-input-moment --save
```
**Notice:** This module requires [moment](https://www.npmjs.com/package/moment) as a [peerDependency](https://docs.npmjs.com/files/package.json#peerdependencies).
### Old Demo
http://wangzuo.github.io/input-moment
### Usage
#### Basic example
``` javascript
```
#### 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
- npm install
- npm start
- http://localhost:8888
### License
ISC