<script lang="ts" setup>
interface Props {
  prefix?: string
  size?: string
  icon: string
}
const props = withDefaults(defineProps<Props>(), {
  prefix: 'icon',
  size: '1em'
})

const symbolId = computed(() => `#${props.prefix}-${props.icon}`)
</script>

<template>
  <svg aria-hidden="true" :width="size" :height="size" class="inline-block">
    <use :xlink:href="symbolId" fill="currentColor" />
  </svg>
</template>

<style lang="scss" scoped></style>
