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