WIP component for more easily rendering svgs that are inline to be able to reach by id or class
This commit is contained in:
9
src/components/ui/SvgIcon.vue
Normal file
9
src/components/ui/SvgIcon.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<div v-html="require(`@/assets/icons/${ icon }.svg`)"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: ['icon']
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user