File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
A HTML 5 canvas countdown clock as a React component
4
4
5
- [ Here's a Demo] ( http://pughpugh.github.io/react-countdown-clock )
5
+ ## Demo
6
+
7
+ [ pughpugh.github.io/react-countdown-clock] ( http://pughpugh.github.io/react-countdown-clock )
6
8
7
9
## Installation
8
10
@@ -14,10 +16,20 @@ npm install react-countdown-clock
14
16
15
17
``` javascript
16
18
< ReactCountdownClock seconds= {60 }
17
- color= { #000 }
19
+ color= " #000"
18
20
alpha= {0.9 }
19
21
size= {300 }
20
22
onComplete= {myCallback} / >
21
23
```
22
24
23
- Enjoy : p
25
+ ## Props
26
+
27
+ * ` seconds ` to count down
28
+ * ` color ` you'd like it to be as a hex/css colour code
29
+ * ` alpha ` transparency for component
30
+ * ` size ` for height and width of canvas element, in pixels.
31
+ * ` onComplete ` callback when timer completes
32
+
33
+ ## Bugs
34
+
35
+ [ github.com/pughpugh/react-countdown-clock/issues] ( https://github.com/pughpugh/react-countdown-clock/issues )
You can’t perform that action at this time.
0 commit comments