
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
radial-progress-svelte
Advanced tools
radial-progress-svelte is a light-weight responsive SVG radial progress component for Svelte.
npm i radial-progress-svelte
<script>
import { RadialProgress } from 'radial-progress-svelte';
const maxTotalSize = 150;
const thickness = 30;
const size = 200;
const data = [
{ value: 40, color: '#2B2EFF' },
{ value: 20, color: '#1761FF' },
{ value: 60, color: '#1761FF' }
];
$: totalProgress = data.reduce((acc, curr) => acc + curr.value, 0);
</script>
<RadialProgress {data} {maxTotalSize} {thickness} {size}>
<div>{totalProgress} / {maxTotalSize}</div>
</RadialProgress>
ℹ️ In case the size parameter is not provided, the radial progress component will automatically adjust its size to fit in the parent element.
name | type | default | description |
---|---|---|---|
data | Array<{ value: number, color: string }> | [] | Dataset for the radial progress component |
maxTotalSize | Number | The total sum of the value from the `data` prop | Specifies the maximum total size |
thickness | Number | 30 | Specifies the thickness of the radial progress bar |
size | Number | undefined | Specify a fixed size for the radial progress component. In case it's not provided, the component will automatically adjust its size to fit in the parent element, which is a better scenario in case you want responsiveness |
backgroundColor | String | '#D9D9D9' | The color of the remaining space of the radial progress bar |
name | default | description |
---|---|---|
Default | Empty | Content to be displayed inside the radial progress component |
Install and run the project
npm install
npm run dev
FAQs
🤗 Svelte Radial Progress
The npm package radial-progress-svelte receives a total of 0 weekly downloads. As such, radial-progress-svelte popularity was classified as not popular.
We found that radial-progress-svelte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
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.