Skip to content

A configurable, circular progress bar as a Svelte component

Notifications You must be signed in to change notification settings

acarl005/svelte-progress-circles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svelte Progress Circles

This is a Svelte component for a circular progress bar, i.e. a "progress circle".

Usage

<script>
  import { ProgressCircle } from "svelte-progress-circles"
</script>

<div class="circle-container">
  <ProgressCircle progress={10} />
</div>

<style>
  .circle-container {
    width: 200px;
    height: 200px;
    font-size: 40px;
  }
</style>

default

The chart will assume the full width and height of its container, and it MUST BE SQUARE (same width and height).

Options

<ProgressCircle progress={0} text="" />

blank

<ProgressCircle progress={25} text="1/4" />

text

<ProgressCircle progress={40} fgColor="#9acd32" bgColor="black" />

color

<ProgressCircle progress={60} fullness={50} />

fullness

<div>
  <ProgressCircle progress={75} fullness={100} />
</div>

<style>
  div {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
</style>

small

About

A configurable, circular progress bar as a Svelte component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published