<template>
  <svg aria-hidden="true" class="svg-icon" :width="props.size" :height="props.size" >
    <use :xlink:href="symbolId" :fill="props.color"
        rel="external nofollow"/>
  </svg>
</template>

<script setup>
import { computed } from 'vue'
const props = defineProps({
  prefix: {
    type: String,
    default: 'icon'
  },
  name: {
    type: String,
    required: true
  },
  color: {
    type: String,
    default: "currentColor"
  },
  size: {
    type: String,
    default: '2.5em'
  }
})

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

<style scoped>
</style>