mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
fix(module): use relative imports to components / composables
This commit is contained in:
26
src/runtime/components/Icon.vue
Normal file
26
src/runtime/components/Icon.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script lang="ts">
|
||||
export interface IconProps {
|
||||
name: string
|
||||
mode?: 'svg' | 'css'
|
||||
size?: string | number
|
||||
customize?: (
|
||||
content: string,
|
||||
name?: string,
|
||||
prefix?: string,
|
||||
provider?: string
|
||||
) => string
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useForwardProps } from 'radix-vue'
|
||||
import { reactivePick } from '@vueuse/core'
|
||||
|
||||
const props = defineProps<IconProps>()
|
||||
|
||||
const iconProps = useForwardProps(reactivePick(props, 'name', 'mode', 'size', 'customize'))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Icon v-bind="iconProps" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user