Gathering detailed insights and metrics for tt-react-progressbar.js
Gathering detailed insights and metrics for tt-react-progressbar.js
Gathering detailed insights and metrics for tt-react-progressbar.js
Gathering detailed insights and metrics for tt-react-progressbar.js
npm install tt-react-progressbar.js
Typescript
Module System
Node Version
NPM Version
JavaScript (88.52%)
HTML (8.57%)
CSS (2.91%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
47 Commits
1 Branches
1 Contributors
Updated on Aug 16, 2017
Latest Version
0.2.1-tt2
Package Id
tt-react-progressbar.js@0.2.1-tt2
Size
90.86 kB
NPM Version
5.0.3
Node Version
8.1.4
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;
Original project: https://github.com/kimmobrunfeldt/react-progressbar.js
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
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
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
83 existing vulnerabilities detected
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