1.0.0 • Published 4 years ago
@shapla/vue-progress v1.0.0
Shapla Progress Bar
A custom progress bar featuring support for stacked bars, animated backgrounds, and text labels.
Table of contents
Installation
npm install --save @shapla/vue-progressUsage
Styles
with Sass:
import '@shapla/vue-progress/src/index.scss';with CSS:
import '@shapla/vue-progress/dist/style.css';Javascript Instantiation
import ShaplaProgress from '@shapla/vue-progress';
export default {
name: 'Hello',
components: {
ShaplaProgress
}
}<shapla-progress :value="1" :max="10" :striped="true" :animated="true" size="small" theme="primary"/>Props
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
value | Number | no | | Current progress value | |
max | Number | no | 1 | Max progress value |
label | String | no | | Label text | |
striped | Boolean | no | false | Set true to display stripped design |
animated | Boolean | no | false | Set true to display stripped animation |
size | String | no | default | Progress bar height. Value can be tiny, small, medium, large |
theme | String | no | default | Progress bar color theme. Value can be primary, secondary |
1.0.0
4 years ago