Vue.js (2.5+) functional component to display material icon.
Using NPM:
npm install vue-material-icon
In your main.js file:
import VueMaterialIcon from 'vue-material-icon'
Vue.component(VueMaterialIcon.name, VueMaterialIcon)
In your components template:
<vue-material-icon name="favorite" :size="32"></vue-material-icon>
- name - material icon name which can be find here
- size - icon size in px (24 is default)