react-sample-countdown-timer

0.0.6 • Public • Published

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

Package Sidebar

Install

npm i react-sample-countdown-timer

Weekly Downloads

1

Version

0.0.6

License

ISC

Unpacked Size

6.72 kB

Total Files

5

Last publish

Collaborators

  • nizampatnam