Closed nova1751 closed 6 months ago
Use :
to separate collection and icon: <i-gravity-ui:cloud-gear />
Use
:
to separate collection and icon:<i-gravity-ui:cloud-gear />
316
It doesn't seem to work though,it still doesn't render correctly.
what fw are you using?
what fw are you using?
"vite": "^4.4.9",
"vue": "^3.3.12",
@nova1751 it seems gravity-ui
collection missing (should be very new), add it to resolver options via enabledCollections: ['gravity-ui'],
to IconResolver
: https://stackblitz.com/edit/unplugin-unplugin-icons-rupzop?file=vite.config.ts,App.vue
Next time check examples readme page to provide a playground.
Next time check examples readme page to provide a playground.
Oh, I see.Thanks for your help.
Describe the bug
I'm very confused about how to auto-import icons like the picture below,I tried the forms like
<i-gravity-ui-cloud-gear />
and<i-GravityUI-cloud-gear />
but it didn't work.Reproduction
1
System Info
Used Package Manager
pnpm
Validations