Socket
Socket
Sign inDemoInstall

vue-progressbar-component

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-progressbar-component

[CSS GPU Animation] Simple progressbar for vuejs


Version published
Weekly downloads
28
increased by64.71%
Maintainers
1
Weekly downloads
 
Created
Source

vue-progressbar-component

[CSS GPU Animation] Simple progressbar for vuejs

npm license npm

Demo

Demo here

Install

npm install vue-progressbar-component or yarn add vue-progressbar-component

Usage

The most common use case is to register the component globally.

// in your main.js or similar file
import Vue from 'vue'
import ProgressBar from 'vue-progressbar-component'

Vue.component('progress-bar', ProgressBar)

Alternatively you can do this to register the components:

// HelloWorld.vue
import ProgressBar from 'vue-progressbar-component'

export default {
  name: 'HelloWorld',
  components: {
    ProgressBar
  }
}

On your page you can now use html like this:

<!-- simple progress bar -->
<progress-bar :value="77"></progress-bar>

<!-- change start origin from right-->
<progress-bar :value="95" origin="right"></progress-bar>

<!-- change scaleX to scaleY and origin bottom-->
<progress-bar :value="88" scale="Y" origin="bottom"></progress-bar>

CSS

// simple theme
@import "./node_modules/vue-progressbar-component/src/scss/progressbar";

Props

PropTypeRequiredSyncDefaultDescription
valueNumberfalsefalse0Progress bar (width) from 0 to 100
originStringfalsefalseleftSet origin
scaleStringfalsefalseXSet scaleX or scaleY

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

Keywords

FAQs

Package last updated on 08 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc