1.0.3 • Published 8 years ago

react-line-progress v1.0.3

Weekly downloads
7
License
MIT
Repository
gitlab
Last release
8 years ago

React Progress Bar Plus

Progress bar component for ReactJS. A modification of https://github.com/minhtranite/react-progress-bar-plus

Installation

NPM

npm install --save react-line-progress

Bower

bower install --save react-line-progress

Usage

JS

var ProgressBar = require('react-line-progress');

<ProgressBar percent={10}/>

CSS

Webpack:

require('react-line-progress/lib/progress-bar.css');

Without Webpack:

<link rel="stylesheet" type="text/css" href="path/to/react-line-progress/lib/progress-bar.css">

UMD

<link rel="stylesheet" type="text/css" href="path/to/react-line-progress/dist/progress-bar.css">
<script src="path/to/react-line-progress/dist/react-line-progress.js"></script>
...
var ProgressBar = window.ReactProgressBarPlus;
...

Props

NameTypeDefaultDescription
percentnumber-1Progress percent
onTopboolfalseProgress bar will ontop & height 100%
autoIncrementboolfalseif true percent will auto increment Math.random() + 1 - Math.random()% in intervalTime ms.
intervalTimenumber200Interval time for auto increment.
spinneroneOf(false, 'left', 'right')leftSpinner position. Pass false to hide spinner icon.
classNamestringCustom class
1.0.3

8 years ago

1.0.2

8 years ago