0.0.6 • Published 4 years ago

react-sample-countdown-timer v0.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

react-sample-countDown-timer

This a sample count down component using react.

Installation

npm install react-sample-countdown-timer --save

Usage

...
import CountDownTimer from 'react-sample-countdown-timer' ... const timeOut = (count) => { console.log("count",count); }; ... <CountDownTimer
From = {20} color={'green'}
size ={30} dangerView= {false} timeOut={timeOut} />

Options

'From' - from where number have to decrement - mandatory 'color' - color to display the timer 'size' - font size 'dangerView' - true| false (if true it will show single number in red color other wise it will show in given color) 'timeOut' - method for timeout call back