A radial progress bar component for Vue.js.
$ npm install vue-radial-progress
<template>
<radial-progress-bar :diameter="200"
:completed-steps="completedSteps"
:total-steps="totalSteps">
<p>Total steps: {{ totalSteps }}</p>
<p>Completed steps: {{ completedSteps }}</p>
</radial-progress-bar>
</template>
<script>
import RadialProgressBar from 'vue-radial-progress';
export default {
data() {
return {
completedSteps: 0,
totalSteps: 10
}
},
components: {
RadialProgressBar
}
}
</script>
diameter
Diameter of the progress bar circle in pixels. Default: 200
totalSteps
Total number of steps.
completedSteps
Number of steps in the progress that have been completed.
startColor
Start color of the progress bar gradient. Default: #bbff42
stopColor
Stop color of the progress bar gradient. Default: #429321
innerStrokeColor
Color of the background of the progress bar. Default: #323232
strokeWidth
The width of the progress bar. Default: 10
animateSpeed
The amount of time in milliseconds to animate one step. Default: 1000
npm run lint
npm run dev