react-countdown-clock
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "react-countdown-clock", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "HTML5 canvas countdown clock React component", | ||
@@ -5,0 +5,0 @@ "main": "build/react-countdown-clock.js", |
@@ -5,4 +5,6 @@ # React Countdown Clock | ||
[Here's a Demo](http://pughpugh.github.io/react-countdown-clock) | ||
## Demo | ||
[pughpugh.github.io/react-countdown-clock](http://pughpugh.github.io/react-countdown-clock) | ||
## Installation | ||
@@ -18,3 +20,3 @@ | ||
<ReactCountdownClock seconds={60} | ||
color={#000} | ||
color="#000" | ||
alpha={0.9} | ||
@@ -25,2 +27,12 @@ size={300} | ||
Enjoy :p | ||
## Props | ||
* `seconds` to count down | ||
* `color` you'd like it to be as a hex/css colour code | ||
* `alpha` transparency for component | ||
* `size` for height and width of canvas element, in pixels. | ||
* `onComplete` callback when timer completes | ||
## Bugs | ||
[github.com/pughpugh/react-countdown-clock/issues](https://github.com/pughpugh/react-countdown-clock/issues) |
20809
36