1000+ Pixel-perfect svg unicons for your next project as Vue components
https://antonreshetov.github.io/vue-unicons
A simple way to add the necessary icons and install them.
Installing with npm is recommended and it works seamlessly with webpack.
npm i vue-unicons
You can download latest version from the Github: Download
To use in your project:
- Import vue-unicons
- Grab the icons you want and add then into Unicon library
- Install Unicon into Vue
main.js
import Vue from 'vue'
import App from './App.vue'
import Unicon from 'vue-unicons'
import { uniConstructor, uniCarWash } from 'vue-unicons/src/icons'
Unicon.add([uniConstructor, uniCarWash])
Vue.use(Unicon)
new Vue({
render: h => h(App)
}).$mount('#app')
App.vue
<template>
<unicon name="constructor" fill="royalblue"></unicon>
<unicon name="car-wash" fill="limegreen"></unicon>
</template>
Name | Description | Type | Accepted values |
---|---|---|---|
name |
Icon name | string |
- |
width |
Width of icon | string |
- |
height |
Height of icon | string |
- |
fill |
Fill color of icon | string |
HEX or color name |
Name | Description | Payload |
---|---|---|
click |
Triggered when icon was clicked | - |
Vue Unicons licensed under MIT.
Unicons licensed under Apache 2.0