Skip to content

1000+ Pixel-perfect svg icons for your next project as Vue components

License

Notifications You must be signed in to change notification settings

mgambill/vue-unicons

 
 

Repository files navigation

logo of vue-unicons repository

1000+ Pixel-perfect svg unicons for your next project as Vue components

Demo

https://antonreshetov.github.io/vue-unicons

Developed with love for developers

A simple way to add the necessary icons and install them.

demo

Install

NPM

Installing with npm is recommended and it works seamlessly with webpack.

npm i vue-unicons

Download

You can download latest version from the Github: Download

Quick start

Global

To use in your project:

  1. Import vue-unicons
  2. Grab the icons you want and add then into Unicon library
  3. 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>

Props

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

Events

Name Description Payload
click Triggered when icon was clicked -

License

Vue Unicons licensed under MIT.

Unicons licensed under Apache 2.0

About

1000+ Pixel-perfect svg icons for your next project as Vue components

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 72.6%
  • JavaScript 21.1%
  • HTML 3.6%
  • Shell 1.6%
  • CSS 1.1%