Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
vue-progressbar-component
Advanced tools
[CSS GPU Animation] Simple progressbar for vuejs
npm install vue-progressbar-component
or yarn add vue-progressbar-component
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>
// simple theme
@import "./node_modules/vue-progressbar-component/src/scss/progressbar";
Prop | Type | Required | Sync | Default | Description |
---|---|---|---|---|---|
value | Number | false | false | 0 | Progress bar (width) from 0 to 100 |
origin | String | false | false | left | Set origin |
scale | String | false | false | X | Set scaleX or scaleY |
# 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
FAQs
[CSS GPU Animation] Simple progressbar for vuejs
The npm package vue-progressbar-component receives a total of 25 weekly downloads. As such, vue-progressbar-component popularity was classified as not popular.
We found that vue-progressbar-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.