Gathering detailed insights and metrics for vue-unicons
Gathering detailed insights and metrics for vue-unicons
Gathering detailed insights and metrics for vue-unicons
Gathering detailed insights and metrics for vue-unicons
@iconscout/vue-unicons
4,500+ vector icons as easy to use Vue Components
vue3-unicons
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
@iconscout/vue-unicons-solid
4,500+ vector solid icons as easy to use Vue Components
@scriptburn/vue-unicons
1100+ vector icons as easy to use Vue Components
1000+ Pixel-perfect svg icons for your next project as Vue components
npm install vue-unicons
Typescript
Module System
Node Version
NPM Version
Vue (63.26%)
JavaScript (32.03%)
HTML (2.21%)
Shell (1.25%)
SCSS (0.8%)
Handlebars (0.46%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,008 Stars
119 Commits
57 Forks
15 Watchers
2 Branches
6 Contributors
Updated on Jun 17, 2025
Latest Version
3.3.1
Package Id
vue-unicons@3.3.1
Unpacked Size
1.25 MB
Size
344.55 kB
File Count
9
NPM Version
8.1.3
Node Version
14.18.1
Published on
Nov 24, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
29
1000+ Pixel-perfect svg unicons for your next project as Vue components
Vue Unicons is open source project and completely free to use.
If you like the project, you can donate to support the development via the following methods:
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.
1npm i vue-unicons
You can download latest version from the Github: Download
To use in your project:
main.js
Vue 3
1import { createApp } from 'vue' 2import App from './App.vue' 3import Unicon from 'vue-unicons' 4import { uniLayerGroupMonochrome, uniCarWash } from 'vue-unicons/dist/icons' 5 6Unicon.add([uniLayerGroupMonochrome, uniCarWash]) 7 8createApp(App).use(Unicon).mount('#app')
Vue 2
1import Vue from 'vue' 2import App from './App.vue' 3import Unicon from 'vue-unicons/dist/vue-unicons-vue2.umd' 4import { uniLayerGroupMonochrome, uniCarWash } from 'vue-unicons/dist/icons' 5 6Unicon.add([uniLayerGroupMonochrome, uniCarWash]) 7Vue.use(Unicon) 8 9new Vue({ 10 render: h => h(App) 11}).$mount('#app')
App.vue
Use the name of icon without the uni prefix, icon style and in the kebab-case:
uniCarWash
->car-wash
uniLayerGroupMonochrome
->layer-group
1<template> 2 <div> 3 <unicon name="car-wash" fill="limegreen"></unicon> 4 <unicon name="layer-group" fill="royalblue" icon-style="monochrome"></unicon> 5 </div> 6</template>
You can configure the icons globally. Simply specify the required parameters during installation.
1... 2createApp(App) 3 .use(Unicon, { 4 fill: 'deeppink', 5 height: 32, 6 width: 32 7 }) 8 .mount('#app')
No icons you need? No problem, you can add custom svg icons.
custom-icons.js
1// Always use a prefix to avoid coincidence with existing icons. 2export const myCustomIcon = { 3 name: 'my-custom-icon', 4 style: 'line', 5 path: '<path d="M16.327 10.775a.312.312 0 0...</path>' // Copy everything inside the svg tag of the icon you want and past there 6}
For correct positioning of svg icon please make sure that the icon to be added has
viewBox="0 0 X X"
main.js
1import { createApp } from 'vue' 2import App from './App.vue' 3import Unicon from 'vue-unicons' 4import { uniLayerGroupMonochrome, uniCarWash } from 'vue-unicons/dist/icons' 5import { myCustomIcon } from './custom-icons' 6 7Unicon.add([uniLayerGroupMonochrome, uniCarWash, myCustomIcon]) 8 9createApp(App).use(Unicon).mount('#app')
App.vue
1<template> 2 <div> 3 <unicon name="constructor" fill="royalblue"></unicon> 4 <unicon name="car-wash" fill="limegreen"></unicon> 5 <unicon name="my-custom-icon" fill="royalblue" /> 6 </div> 7</template>
Installation in Nuxt is almost the same, except that you need to create a separate file in the plugins
folder:
plugins/vue-unicons.js
1import Vue from 'vue' 2import Unicon from 'vue-unicons/dist/vue-unicons-vue2.umd' 3import { uniLayerGroupMonochrome, uniCarWash } from 'vue-unicons/dist/icons' 4 5Unicon.add([uniLayerGroupMonochrome, uniCarWash]) 6Vue.use(Unicon)
Then we add the file path inside the plugins key in nuxt.config.js
, and set mode: 'client'
to make vue-unicons work only in a browser.
1 ... 2 plugins: [ 3 { src: '~/plugins/vue-unicons', mode: 'client' } 4 ] 5 ...
1<template> 2 <div> 3 <client-only> 4 <unicon name="car-wash" fill="limegreen"></unicon> 5 <unicon name="layer-group" fill="royalblue" icon-style="monochrome"></unicon> 6 </client-only> 7 </div> 8</template>
Name | Description | Type | Accepted values | Default value |
---|---|---|---|---|
name | Icon name | string | - | - |
width | Width of icon | string | - | - |
height | Height of icon | string | - | - |
fill | Fill color of icon | string | HEX or color name | - |
hover-fill | Fill color on hover | string | HEX or color name | - |
icon-style | Icon style | string | line / monochrome | line |
Name | Description | Payload |
---|---|---|
click | Triggered when icon was clicked | - |
Vue Unicons licensed under MIT.
Unicons licensed under Apache 2.0
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/30 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
149 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More