Socket
Socket
Sign inDemoInstall

react-countdown-clock

Package Overview
Dependencies
88
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-countdown-clock

HTML5 canvas countdown clock React component


Version published
Weekly downloads
1.2K
decreased by-20.23%
Maintainers
1
Install size
8.22 MB
Created
Weekly downloads
 

Readme

Source

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

proptypedefaultdescription
secondsinteger60Seconds to countdown
colorstring#000Colour of counter
alphafloat1.0Alpha transparency of counter
sizeinteger300Width & height of canvas element
weightintegerWeight of circle, in pixels
fontSizeinteger/stringautopx size of font. auto for dynamic sizing.
fontstringArialFont of counter
timeFormatstringsecondsCounter style; seconds or hms
showMillisecondsbooleantrueShow milliseconds for last 10 seconds
onCompletefuncCallback when time completes
pausedbooleanfalsePause countdown of the timer
pausedTextstringText to display when paused, defaults to the current time

Bugs & Contributions

Bugs, features and pull requests always welcome.

github.com/pughpugh/react-countdown-clock/issues

Also, it's always just nice to hear how people are using it. Feel free to get in touch.

Keywords

FAQs

Last updated on 16 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc