2026-11-05 10:28:10 +09:00

16 lines
504 B
Vue

<script setup>
import { computed } from 'vue';
import { ICONS } from '../lib/icons.js';
const props = defineProps({
name: { type: String, required: true },
size: { type: Number, default: 18 },
});
const paths = computed(() => ICONS[props.name] || '');
</script>
<template>
<svg class="ic" :width="size" :height="size" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" v-html="paths"></svg>
</template>