0.0.2 • Published 2 years ago

svelte-progress-circles v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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