mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
24 lines
441 B
Vue
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>
|