<script setup>
import { ref } from 'vue'
defineOptions({
  name: 'VIcon'
})

const props = defineProps({
  name: {
    type: String,
    required: true
  },
  size: [String, Number],
  color: {
    type: String,
    default: 'var(--el-text-color-primary)'
  }
})
</script>

<template>
  <el-icon :size="size" :color="color"><component :is="name" /></el-icon>
</template>