
Vue Awesome
Font Awesome component for Vue.js, using inline SVG
5.2K viewsAdded Jan 7, 2019
Font Awesome component for Vue.js, using inline SVG
Installation
npm (Recommended)
npm install vue-awesome
bower
bower install vue-awesome
Usage
<!-- basic -->
<v-icon name="beer"/>
<!-- with options -->
<v-icon name="sync" scale="2" spin/>
<v-icon name="comment" flip="horizontal"/>
<v-icon name="code-branch" label="Forked Repository"/>
<!-- stacked icons -->
<v-icon label="No Photos">
<v-icon name="camera"/>
<v-icon name="ban" scale="2" class="alert"/>
</v-icon>
ES Modules with NPM & vue-loader (Recommended)
import Vue from 'vue'
/* Pick one way between the 2 following ways */
// only import the icons you use to reduce bundle size
import 'vue-awesome/icons/flag'
// or import all icons if you don't care about bundle size
import 'vue-awesome/icons'
/* Register component with one of 2 methods */
import Icon from 'vue-awesome/components/Icon'
// globally (in your main .js file)
Vue.component('v-icon', Icon)
// or locally (in your component file)
export default {
components: {
'v-icon': Icon
}
}




