0.6.2 • Published 5 years ago

@arshanwer/react-countdown-timer v0.6.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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={() => { }} />
    )
  }
}
AttributesTypesDefaultRequiredDescription
startTimerboolean-YesStart counter
countDownnumber-Yestime in minutes
resetbooleanundefinedNoEnable resend functionality
resetBtnTextstringundefinedNoSet reset button text
limitResetTriesbooleanundefinedNoLimit the amount of reset timer
TriesCountnumberundefinedNonumber of tries to reset timer
resetTimerCallback(...args : any [])functionundefinedNoFire custom event on reset

License

MIT © Arshanwer

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago