1.0.0 • Published 3 years ago

@shapla/vue-progress v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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-progress

Usage

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

PropertyTypeRequiredDefaultDescription
valueNumberno | Current progress value
maxNumberno1Max progress value
labelStringno | Label text
stripedBooleannofalseSet true to display stripped design
animatedBooleannofalseSet true to display stripped animation
sizeStringnodefaultProgress bar height. Value can be tiny, small, medium, large
themeStringnodefaultProgress bar color theme. Value can be primary, secondary