import Icon from '@mdi/react';
import { mdiRouterNetwork } from '@mdi/js';
<Icon path={mdiRouterNetwork} size={1} />
<template>
<svg-icon type="mdi" :path="path"></svg-icon>
</template>
<script>
import SvgIcon from '@jamescoyle/vue-icon';
import { mdiRouterNetwork } from '@mdi/js';
export default {
name: "my-component",
components: {
SvgIcon
},
data() {
return {
path: mdiRouterNetwork,
}
}
}
</script>
switch.my_switch:
friendly_name: My Switch
icon: mdi:router-network