2024-03-23 18:13:07 +01:00

24 lines
441 B
Vue

<script lang="ts" setup>
const props = withDefaults(
defineProps<{
icon: string
color?: string
size: string | number | undefined
}>(),
{ color: '' },
)
</script>
<template>
<v-icon class="svg-color" :icon="props.icon" :size="props.size" />
</template>
<style lang="scss">
.svg-color {
// eslint-disable scss/function-no-unknown
color: v-bind('props.color');
fill: currentcolor;
stroke: currentcolor;
}
</style>