You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to import it in a dynamic way in order to get the name of the icon to be imported through a prop, something like this:
<script>
import {onMount} from 'svelte'
export let name
let SVGComponent
onMount(async () =>{constSVG=awaitimport(`@assets/icons/${name}.svg`)SVGComponent=SVG})
</script><svelte:componentthis={SVGComponent}/>
The text was updated successfully, but these errors were encountered:
To be able to import it in a dynamic way in order to get the name of the icon to be imported through a prop, something like this:
The text was updated successfully, but these errors were encountered: