Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.84 KB

File metadata and controls

48 lines (38 loc) · 1.84 KB

react-timer

react count down component with resend functionality.

NPM JavaScript Style Guide

Install

npm install --save @arshanwer/react-countdown-timer

Live DEMO

Usage

import * as React from 'react'
import {ReactCountDownTimer} from '@arshanwer/react-countdown-timer';

class Example extends React.Component {
  render () {
    return (
      <ReactCountDownTimer
        startTimer={true}
        countDown={1}
        resetBtnText={'RESTART'}
        reset={true}
        limitResetTries={true}
        TriesCount={2}
        resetTimerCallback={() => { }} />
    )
  }
}
Attributes Types Default Required Description
startTimer boolean - Yes Start counter
countDown number - Yes time in minutes
reset boolean undefined No Enable resend functionality
resetBtnText string undefined No Set reset button text
limitResetTries boolean undefined No Limit the amount of reset timer
TriesCount number undefined No number of tries to reset timer
resetTimerCallback(...args : any []) function undefined No Fire custom event on reset

License

MIT © Arshanwer