vue simple icons

Simple Icons as Vue components

23
0
Vue

vue-simple-icons

Simple Icons as Vue components.

Install

yarn add vue-simple-icons

Usage

import { FacebookIcon, TwitterIcon, ... } from 'vue-simple-icons'

See all icons and usage here: https://vue-simple-icons.mainvest.com

Sizing

By default, icons will be sized based on the font size of the parent element.

You can set a custom size using the size attribute.
For multiple based sizing, pass the desired multiple followed by an x.

<facebook-icon size="1.5x" class="custom-class"></facebook-icon>

You can also set a px size directly by passing an integer

<facebook-icon size="25" class="custom-class"></facebook-icon>

Note

Credit

Based on vue-feather-icons by egoist