#rc-timepicker 
> A simple react component for selecting times.

![rc-timepicker in action](https://raw.githubusercontent.com/chris-mckenna/rc-timepicker/master/react-timepicker-demo.gif)

## Install
```
npm install rc-timepicker --save 
```

##Usage
```javascript
//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')
```

```javascript
<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
