
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
reactjs-percentage-circle
Advanced tools
Reactjs-percentage-circle is a component which supports you define your percent and draw the circle.And also you can use it as a progress bar.And you can show some data in a circle you want.
This is a screenshot of the Demo
npm i reactjs-percentage-circle --save
import PercentageCircle from 'reactjs-percentage-circle';
//...
render() {
<div>
<PercentageCircle percent={80}></PercentageCircle>
<PercentageCircle percent={80}>
<p>Children</p>
</PercentageCircle>
</div>
}
Props | Type | Example | Description |
---|---|---|---|
color | string | '#000' | the color of border |
bgcolor | string | '#e3e3e3' | the background color of the circle |
innerColor | string | '#fff' | the color of the inside of the circle |
percent | Number | 30 | the percent you need |
radius | Number | 20 | how large the circle is |
borderWidth | Number(default 2) | 5 | the width of percentage progress bar |
textStyle | Array | {fontSize: 24, color: 'red'} | define the style of the text which in the circle |
children | jsx | <Text>123</Text> | define the children component in the circle |
Your contributions and suggestions are welcome 😄💐
FAQs
a component for loading spinner
We found that reactjs-percentage-circle 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.