GithubHelp home page GithubHelp logo

doc22940 / vue-css-percentage-circle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from web-mech/vue-css-percentage-circle

1.0 1.0 0.0 653 KB

Vue + Pure CSS percentage circle

License: MIT License

JavaScript 56.05% Vue 43.95%

vue-css-percentage-circle's Introduction

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, big]

  • 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

vue-css-percentage-circle's People

Contributors

web-mech avatar

Stargazers

Acampbell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.