react-sample-countdown-timer
v0.0.6
Published
This is a sample count down component from given value
Downloads
9
Maintainers
Readme
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