#rc-timepicker
A simple react component for selecting times.
npm install rc-timepicker --save
##Usage
//es6 imports
import TimePicker from 'rc-timepicker'
import 'rc-timepicker/lib/css/styles.css'
//CommonJS
var TimePicker = require('rc-timepicker')
require('rc-timepicker/lib/css/styles.css')
<TimePicker getTime={(time) => this.handleTime(time)} />
###Props
Prop | Type | Usage |
---|---|---|
getTime | Function | A function to extract the selected time. Returns a single value |
buttonLabel | String | A custom label for the button. |
buttonClass | String | Your CSS class for custom button styles. |
date | Object (moment) | Pass your moment date object into the time picker to calculate past hours. |
disablePastHours | Boolean | Disable hours that have passed if date is today. |
onClick | Function | Function to handle button click |
##Demo
Demo coming soon