Vue component wrapper for @mdi/js.
// NPM
npm i @mdi/js vue-mdijs
// Yarn
yarn add @mdi/js vue-mdijs
main.js
import Vue from 'vue'
import VueMdijs from 'vue-mdijs'
import { mdiMagnify } from '@mdi/js'
VueMdijs.add({ mdiMagnify })
Vue.use(VueMdijs)
app.vue
<template>
<div id="app">
<v-mdi name="mdi-magnify"></v-mdi>
<v-mdi name="mdi-magnify" fill="green"></v-mdi>
</div>
</template>
Live Demo: https://materialdesignicons.com/
GitHub: https://github.com/Kholid060/vue-mdijs
#vue #javascript