1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| <script setup lang="ts">
| import { Icon as IconifyIconComp } from "@iconify/vue";
| import type { IconifyIcon } from "@iconify/vue";
|
| defineOptions({
| name: "IIcon"
| });
|
| const props = defineProps<{
| icon: string | IconifyIcon;
| }>();
| </script>
|
| <template>
| <IconifyIconComp :icon="props.icon" class="i-icon" />
| </template>
|
| <style scoped>
| .i-icon {
| width: 1em;
| height: 1em;
| vertical-align: -0.15em;
| fill: currentColor;
| overflow: hidden;
| }
| </style>
|
|