Closed SarcevicAntonio closed 2 years ago
what works is the auto import, we haven't a unplugin-vue-components
for svelte, it works only with vue
and react
see https://github.com/antfu/unplugin-icons#auto-importing
uppps, wrong button, sorry
what works is the auto import
Are you saying we can manually set up auto-import in Svelte? Auto import is so convenient—I'd love to be able to use it in my Svelte projects
@silasabbott yes you can use auto import in suelte and sveltekit, check the examples folder in the auto import repo
This plugin only serves the icon as virtual modules. Auto-importing is out of the scope of this plugin. Maybe you can find a plugin for Svelte that work nicely with this plugin, or even write one your own.
Like I mentioned here https://github.com/antfu/unplugin-icons/issues/142#issuecomment-1054581854, Im trying to use auto-import with SvelteKit and wondered if it is supported at all.
Or if VSCode could somehow suggest imports of something like
< IconMdiAccountBox/>
I would be happy also very happy.What can we do to get this working/supported?