vue-hexagon-progress
v0.0.6
Published
A progress component using Hexagon for vue.js applications
Downloads
4
Maintainers
Readme
vue-hexagon-progress
A progress component using Hexagon for vue.js applications
Demo
How to use
Installation
npm install vue-hexagon-progress --save
Usage
- In main.js add the below two lines of code
import Vue from 'vue';
import VueHexagonProgress from 'vue-hexagon-progress';
Vue.use(VueHexagonProgress);
- In any component where you would like to use vue hexagon, you can create an options object with the below fields
const options = {
width: 200,
height: 200,
primaryColor: '#45ad9a',
secondaryColor: '#aaa',
labelColor: '#000',
label: '50%',
value: 50,
className: 'vue-hexagon-custom-class',
thickness: 90,
fontSize: 120,
};
- Then in the html code you can use as mentioned below
<VueHexagonProgress :options="options">
- All the options are optional. If you don't pass any specific options, then the default options are as below
{
width: 200,
height: 200,
primaryColor: '#45ad9a',
secondaryColor: '#aaa',
labelColor: '#000',
label: '50%',
value: 50,
className: 'vue-hexagon-progress-custom-class',
thickness: 90,
fontSize: 120,
}
Note: If you are looping through an array to have multiple hexagons, please give unique class names for each of them.
License
Contact
- Gmail : [email protected]
- Github : https://github.com/rajeshwarpatlolla
- Twitter : https://twitter.com/rajeshwar_9032
- Facebook : https://www.facebook.com/rajeshwarpatlolla