mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-03 06:22:21 +02:00
fb280188e1
Resolves #294
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
const template = (keyFileName) => `<script setup lang="ts">
|
|
import { provide } from "vue-demi";
|
|
import type { SVGAttributes } from "vue-demi";
|
|
import providerKey from "./${keyFileName}";
|
|
interface Props {
|
|
iconProps: SVGAttributes
|
|
}
|
|
const props = defineProps<Props>();
|
|
provide(providerKey, props.iconProps);
|
|
</script>
|
|
<template>
|
|
<slot />
|
|
</template>`;
|
|
|
|
module.exports = template;
|