mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 12:39:35 +01:00
27 lines
547 B
Vue
27 lines
547 B
Vue
<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>
|