mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 06:21:46 +01:00
feat(Icon): use @antfu/nuxt-icon-poc (#76)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
@@ -40,7 +40,10 @@ export default defineNuxtModule<ModuleOptions>({
|
||||
|
||||
addVitePlugin(tailwindcss)
|
||||
|
||||
await installModule('nuxt-icon')
|
||||
await installModule('@antfu/nuxt-icon-poc', {
|
||||
componentName: 'UIcon',
|
||||
cssLayer: 'components'
|
||||
})
|
||||
// await installModule('@nuxtjs/color-mode', { classSuffix: '' })
|
||||
|
||||
addPlugin({
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<script lang="ts">
|
||||
export interface IconProps {
|
||||
name: string
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<IconProps>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Icon :name="name" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user