rc-timepicker

0.0.10 • Public • Published

#rc-timepicker

A simple react component for selecting times.

rc-timepicker in action

Install

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

Dependencies (4)

Dev Dependencies (16)

Package Sidebar

Install

npm i rc-timepicker

Weekly Downloads

0

Version

0.0.10

License

MIT

Last publish

Collaborators

  • chris-mckenna