UNPKG

react-progress-timer

Version:

This react component will automatically calculate the time to complete a progress bar by percentage changing speed.

17 lines (14 loc) 358 B
import {Component} from "react"; interface IProps { percentage: number; initialText?: string; completedText?: string; format?: string; formatter?: (unixTime: number) => string; calculateByAverage?: boolean; decreaseTime?: boolean; } declare class ProgressTimer extends Component<IProps> { constructor(props:IProps); } export default ProgressTimer;