
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
vue-simple-progress
Advanced tools
A simple, flexible progress bar for Vue.js
vue-simple-progress is designed to be a lightweight Vue.js progress bar requiring minimal configuration.
https://github.com/dzwillia/vue-simple-progress
https://dzwillia.github.io/vue-simple-progress/examples
IE 10+ (due to CSS animation support).
npm install vue-simple-progress --save
All styling for this component is done via computed styles in the
Progress.vue
component and requires no external CSS files.
The following examples can also be used with CommonJS by replacing ES6-specific syntax with CommonJS equivalents.
import Vue from 'vue'
import ProgressBar from 'vue-simple-progress'
new Vue({
components: {
ProgressBar
}
})
in markup:
<div id="app">
<progress-bar></progress-bar>
</div>
Add a script tag pointing to dist/vue-simple-progress.min.js
after adding Vue.
Example:
<html>
<head>
...
</head>
<body>
<div id="app">
<vue-simple-progress></vue-simple-progress>
</div>
<script src="path/to/vue.js"></script>
<script src="path/to/vue-simple-progress.js"></script>
<script>
new Vue({
el: '#app'
})
</script>
</body>
</html>
<progress-bar size="medium" val="60" text="60">
<progress-bar bar-color="#dc720f" val="60" text="60%">
<progress-bar bar-color="#dc720f" val="60" text="60%" title="60%">
More live code examples on JSFiddle
Props | Type | Values | Default |
---|---|---|---|
val | Number | 0 - max | 0 |
max | Number | Any number | 100 |
size | Number | String | tiny, small, medium, large, huge, massive, {n} | 3 |
bg-color | String | Color | #eee |
bar-color | String | Color | #2196f3 |
bar-transition | String | CSS transition | all 0.5s ease |
bar-border-radius | Number | 0 - max | 0 |
spacing | Number | Any Number | 4 |
text | String | Text to display | (empty string) |
text-align | String | left, right, center | center |
text-position | String | bottom, top, middle, inside | bottom |
font-size | Number | Any Number | 13 |
text-fg-color | String | Color | #222 |
vue-simple-progress is open source and released under the MIT License.
Copyright (c) 2017 David Z Williams.
PS: I would love to know if you're using vue-simple-progress. Tweet to me at @padredaveo.
FAQs
A simple, flexible progress bar for Vue.js
The npm package vue-simple-progress receives a total of 2,323 weekly downloads. As such, vue-simple-progress popularity was classified as popular.
We found that vue-simple-progress 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.