This commit is contained in:
sajjadtalkhabi
2026-05-15 17:12:51 +03:30
parent b8ced45375
commit c82701888a
101 changed files with 8125 additions and 96 deletions
+5 -1
View File
@@ -14,10 +14,13 @@ import { computed } from 'vue'
import { iconRegistry } from '@/components/icons/registry'
/** @typedef {import('@/components/icons/icon-names').IconName} IconName */
const props = defineProps({
/** @type {import('vue').PropType<IconName>} */
name: { type: String, required: true },
size: { type: [String, Number], default: '1.25rem' },
color: { type: String, default: 'currentColor' },
color: { type: String, default: 'transparent' },
})
const component = computed(() => {
@@ -25,6 +28,7 @@ const component = computed(() => {
if (!c && import.meta.env.DEV) {
console.warn(`[SvgIcon] unknown icon "${props.name}"`)
}
return c
})