Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dzwillia/vue-simple-progress

A simple, flexible progress bar for Vue.js
https://github.com/dzwillia/vue-simple-progress

Last synced: 11 days ago
JSON representation

A simple, flexible progress bar for Vue.js

Awesome Lists containing this project

README

        

# vue-simple-progress
> A simple, flexible progress bar for Vue.js

vue-simple-progress is designed to be a lightweight [Vue.js](http://vuejs.org) progress bar requiring minimal configuration.

## Documentation

[https://github.com/dzwillia/vue-simple-progress](https://github.com/dzwillia/vue-simple-progress)

## Demo

[https://dzwillia.github.io/vue-simple-progress/examples](https://dzwillia.github.io/vue-simple-progress/examples)

## Requirements
* [Vue.js](http://vuejs.org/) (^v2.1.4)

## Browser support
IE 10+ (due to [CSS animation support](https://caniuse.com/#feat=css-animation)).

## Installation

### NPM

```bash
npm install vue-simple-progress --save
```

## Usage
> All styling for this component is done via computed styles in the `Progress.vue` component and requires no external CSS files.

### ES6

*The following examples can also be used with CommonJS by replacing ES6-specific syntax with CommonJS equivalents.*

```js
import Vue from 'vue'
import ProgressBar from 'vue-simple-progress'

new Vue({
components: {
ProgressBar
}
})
```

in markup:

```html




```

### Globals (script tag)

Add a script tag pointing to `dist/vue-simple-progress.min.js` *after* adding Vue.

Example:

```html

...






new Vue({
el: '#app'
})

```

## Examples

### Medium size
```

```

### Custom bar color
```

```

### Optional title for accessibility
```

```

[More live code examples on JSFiddle](http://jsfiddle.net/dzwillia/47pvcjs9)

## Options

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

## License
vue-simple-progress is open source and released under the [MIT License](LICENSE).

Copyright (c) 2017 [David Z Williams](https://twitter.com/padredaveo).

> *PS: I would love to know if you're using vue-simple-progress. Tweet to me at [@padredaveo](https://twitter.com/padredaveo)*.