JSPM

rcp-fork

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q17602F
  • License MIT

React port of Clockpicker widget

Package Exports

  • rcp-fork

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rcp-fork) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React ClockPicker

React port of Wang Shenwei's excellent ClockPicker widget.

Installation

npm install --save react-clockpicker

Usage

# Import using ES6 modules
import ClockPicker from 'react-clockpicker'

# Import using CommonJS modules
var ClockPicker = require('react-clockpicker')

# Use the component
<ClockPicker
  hours={hours}
  minutes={minutes}
  disabled={false}
  placement="right"
  addonBefore={...}
  onChange={(hours, minutes) => this.setState({ hours, minutes })} />

You need to have bootstrap.min.js and react-clockpicker.css on the page too.

Roadmap

  • Better documentation
  • Have validation states
  • Use direct text input
  • Github pages example
  • Support dragging cursor while selecting time
  • Remove react-bootstrap dependency?
  • Dismiss button
  • AM/PM selection
  • Transition effects

License

MIT