Skip to content

A timer component for React that counts down to zero for a specified number of milliseconds.

License

Notifications You must be signed in to change notification settings

uken/react-countdown-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-countdown-timer

A timer component for React that counts down to zero for a specified number of milliseconds.

props

initialTimeRemaining: Number The time remaining for the countdown (in ms).

interval: Number (optional -- default: 1000ms) The time between timer ticks (in ms).

formatFunc(timeRemaining): Function (optional) A function that formats the timeRemaining.

tickCallback(timeRemaining): Function (optional) A function to call each tick.

completeCallback(): Function (optional) A function to call when the countdown completes.

About

A timer component for React that counts down to zero for a specified number of milliseconds.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published