vue-css-percentage-circle

VueJS Powered css-percentage-circle
6,874 8
Install
npm install vue-css-percentage-circle
Latest Version:2.0.0
Vue:2
License:MIT
Last Updated:Jan 6, 2023
Links: GitHub  ·  npm
Maintainer: webmech

vue-css-percentage-circle

Vue CSS Percentage Circle

Getting Started

npm install --save vue-css-percentage-circle

Usage

<PercentageCircle :percent="50" />
Theming
<PercentageCircle :percent="50" active-color="blue" complete-color="green"/>
<PercentageCircle :percent="50" active-color="green" complete-color="orange"/>
<PercentageCircle :percent="50" active-color="orange" complete-color="blue"/>
Animated
<PercentageCircle :percent="50" :animate="true"/>
Dark Mode
<PercentageCircle :percent="50" :dark-mode="true" />

API

percentage-circle

props
  • percent Number (optional)

    Percentage of progress (0-100)

  • size String (optional) default: 'small'

    Size of percentage circle [micro, small, medium, large, huge]

  • active-color String (optional) default: 'blue'

    Color when active. [blue, green, orange]

  • complete-color String (optional) default: ''

    Color when complete. [blue, green, orange]

  • animate Boolean (optional) default: false

    Animate percentage changes.

  • refresh-rate Number (optional) default: 5

    Only applicable when animated is set to true. Speed in which animation changes happen

  • dark-mode Boolean (optional) default: false

    Toggle between normal and dark themes

events
  • click

    Click event.

Testing

Storybook used for testing. To run storybook, run:

npm run dev

or

npm run storybook

Related Packages

vue-css-donut-chart

Lightweight Vue component for creating donut charts

285,221
vue-progress-circle

Circle progress component for vue 3

11,951 3
vue3-css-donut-chart

Lightweight Vue component for drawing pure CSS donut charts, forked for vue3

479 0
vuejs-progress-bar

A progress bar component for Vue.js

51,032 75

Version History

Version Released Vue License
2.0.0 ^2.6.10 MIT
1.1.3 ^2.6.10 MIT
1.1.2 ^2.6.10 MIT
1.1.1 ^2.6.10 MIT
1.1.0 ^2.6.10 MIT