vc-icon

Install

npm install vc-icon --save
// build version
import vcIcon from 'vc-icon'
// recommand for *.vue project for small bundle size
import vcIcon from 'vc-icon/src/Icon.vue'
// commonjs
require('dist/build.min.js')
// script tag
<script src='./dist/build.min.js'></script>

Usage

props

type

name of icon, full Bootstrap Glyphicons Halflings icons support

shape

shape of icon

size

icon size

example

import Vue from 'vue'
import vcIcon from 'vc-icon/src'
new Vue({
el: '#app',
data () {
return {
type: 'ok',
shape: 'circle',
size: 'large'
}
},
components: {
vcIcon
}
})
<vc-icon
:type="type"
:shape="shape"
:size="large"
>
</vc-icon>