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