Skip to content
This repository was archived by the owner on Feb 27, 2019. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 885 Bytes

File metadata and controls

37 lines (25 loc) · 885 Bytes

React Countdown Clock

A HTML 5 canvas countdown clock as a React component

Screenshot

Demo

pughpugh.github.io/react-countdown-clock

Installation

npm install react-countdown-clock

Usage

<ReactCountdownClock seconds={60}
                     color="#000"
                     alpha={0.9}
                     size={300}
                     onComplete={myCallback} />

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