3.2.1 • Published 4 days ago
circle-progress.vue v3.2.1
Welcome to circle-progress.vue!
Hi! Highly customizable & lightweight & responsive circular progressbar component for Vue 3, built with SVG and extensively customizable.
Installation
npm install --save circle-progress.vue
Adding into app
import { CircleProgressBar } from 'circle-progress.vue';
<CircleProgressBar :value="7" :max="10" />
Props
Please write me, if you need more props :) You can customize your progress bars as you want. For example:
Props | Type | Description | Default |
---|---|---|---|
max* | Number | Max value | - (required) |
value* | Number | Current value | - (required) |
size | Number, String | Size of the circle | '124' |
colorFilled | String | Circle color if limit exceed | '#FF5533' |
colorUnfilled | String | Circle color if limit not exceed | '#3BB44A' |
colorBack | String | Back circle color | '#ECEEF1' |
percentage | BooleaN | Show percentage | false |
rounded | BooleaN | Rounding the circle line | false |
animationDuration | String | Animation Duration | '0.5s' |
strokeWidth | String | Circle Stroke width | '5px' |
reversedFilling | Boolean | Enable reversed filling | false |
Other
Also you can use slots to throw your custom content. For example:
<CircleProgressBar
:value="20"
:max="80"
percentage
rounded>
{{ value }} / {{ max }}
</CircleProgressBar>