
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
react-js-progressbar
Advanced tools
React library to help developers to draw animated, cross-browser, highly customizable progress circles using SVG.
npm install react-js-progressbar
//...
import Progressbar from 'react-js-progressbar';
export default function App() {
const [percentage, setPercentage] = useState(0);
const change_progressbar_input = () => {
setPercentage(50);
};
return (
<>
<div id='progressbarContainer'>
<Progressbar
input={percentage}
pathWidth={10}
pathColor={['#56ab2f', '#a8e063']} // use an array for gradient color.
trailWidth={20}
trailColor='#363636' // use a string for solid color.
textStyle={{ fill: 'red' }} // middle text style
>
// children goes here, an image for example. (optional)
</Progressbar>
</div>
</>
);
}
0
and 100
.full circle
100%
true
12
['#f4314a', '#fa5813']
round
"offset-x offset-y blur-radius color"
'arc'
shape and when dashed
is enabled.'none'
to remove the shadow.0px 0px 2px #00000080
false
15
2
5
'none'
to remove the trail.lightgray
'none'
to remove the background.none
""
(empty string) to remove the text.input + '%'
{x: '50%', y: '50%}
Option | Description | Default Value |
---|---|---|
x | Align progressbar text on the x axis. | '50%' |
y | Align progressbar text on the y axis. | '50%' |
fill
for text color.{ fontSize: '40px', fill: 'black' }
input value
.customText
value is given.true
{ duration: 500, delay: 0, ease: 'easeOutBack', animateOnMount: true, animateOnInputChange: true }
Option | Type | Description | Default Value |
---|---|---|---|
animateOnMount | Boolean | Animate on first render. | true |
animateOnInputChange | Boolean | Animate every time input value changes. | true |
duration | Number | Progressbar animation duration in ms. | 500 |
delay | Number | Progressbar animation delay in ms. | 0 |
ease | String | Function | Check easings.net to learn more. | 'easeOutBack' |
FAQs
React library to help developers to draw animated, cross-browser, highly customizable progress circles using SVG.
We found that react-js-progressbar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.