1.0.7 • Published 6 years ago

react-circle-count-down v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

react-circle-count-down

A react count-down plugin in circle shape! img

Installation

NPM
npm install --save react-circle-count-down
Yarn
yarn add react-circle-count-down

Usage

import CountDown from 'react-circle-count-down'
<CountDown isStart={true} progressTime={10}/>

Props

NameTypeDefaultDescription
progressTime (required)number10Total time to count down
isStart (required)boolnoneA bool flag to start the count-down progress,set it to true to start the count-down, you can reset the count down by set it to true
circleDiameternumber50The circle's diameter, controls the size of the component
circleColorstring'#337fff'The color of circle,in the picture above is blue
strokeWidthnumber10 (max:100)The width of the circle
timeMethodstring'integer',one of 'integer','decimals''integer' means the text of countdown is integer, 'decimals' means the text is float number
hideAfterDoneboolfalsewhether to hide the circle after count-down completed
onCountDownDonefunctionnoneThe callback when the count-dwon is completed
onCountDownStartfunctionnoneThe callback when the count-dwon is started
fontStyleObjobject{}The style object to customize the cound-down text
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago