Gathering detailed insights and metrics for react-progressbar.js
Gathering detailed insights and metrics for react-progressbar.js
Gathering detailed insights and metrics for react-progressbar.js
Gathering detailed insights and metrics for react-progressbar.js
npm install react-progressbar.js
Typescript
Module System
Node Version
NPM Version
JavaScript (92.71%)
HTML (3.96%)
Shell (1.98%)
CSS (1.34%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
316 Stars
36 Commits
64 Forks
3 Watchers
2 Branches
7 Contributors
Updated on May 01, 2025
Latest Version
0.2.0
Package Id
react-progressbar.js@0.2.0
Size
55.09 kB
NPM Version
3.8.6
Node Version
6.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
This module is a React wrapper for progressbar.js. That's why most of the documentation refers to the original documentation.
Shortcuts
react-progressbar.js is lightweight, MIT licensed and supports all major browsers including IE9+.
Install the library using npm:
npm install --save react-progressbar.js
Since React users are anyways using a CommonJS module loader, this module is published only in NPM.
CommonJS
1var ProgressBar = require('react-progressbar.js') 2var Circle = ProgressBar.Circle;
See https://github.com/kimmobrunfeldt/progressbar.js#how-it-works.
NOTE: Line, Circle and SemiCircle all point to the same documentation which is named Shape. You almost certainly should replace it(Shape) with Line, Circle or SemiCircle.
Example: if documentation states <Shape />
, replace it with
<Circle />
, simple. Shape is the internal base object for all
progress bars.
Important: make sure that your container has same aspect ratio as the SVG canvas. For example: if you are using SemiCircle, set e.g.
1#container { 2 width: 300px; 3 height: 150px; 4}
Line, Circle or SemiCircle shaped progress bar. Appends SVG to container.
Example
1var App = React.createClass({ 2 render: function render() { 3 var options = { 4 strokeWidth: 2 5 }; 6 7 // For demo purposes so the container has some dimensions. 8 // Otherwise progress bar won't be shown 9 var containerStyle = { 10 width: '200px', 11 height: '200px' 12 }; 13 14 return ( 15 <Circle 16 progress={this.state.progress} 17 text={'test'} 18 options={options} 19 initialAnimate={true} 20 containerStyle={containerStyle} 21 containerClassName={'.progressbar'} /> 22 ); 23 } 24});
With Line shape, you can control the width of the line by specifying e.g. height: 5px
with CSS.
Props:
Prop | Description |
---|---|
progress | Progress from 0 to 1. E.g. 67% progress would equal 0.67 . Default 0 . |
text | Value for progress bar's text. Default null . |
options | Options for path drawing. See progressbar.js documentation. |
initialAnimate | If true , progress bar is animated to given progress when mounted. Default false . |
containerStyle | Styles for progress bar container. Default {} . |
containerClassName | Class name for progress bar container. Default .progressbar-container . |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/20 approved changesets -- score normalized to 3
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More