sveltekit-svg
sveltekit-svg copied to clipboard
SvelteKit plugin that makes it possible to import SVG files as Svelte components, inline SVG code or urls
I'm trying to use svelte-svg in components of a library output with `svelte-kit package`. Locally (and with Storybook) i can get everything working fine; but when I try to import...
Hey there! I have a scenario where I need to import an SVG file as a URL (rather than as a Svelte component), but I still want it to go...
```js import BaseSvg from "./map2.svg?component"; let base; $effect(() => { console.log(base); // --> {} }); ``` I'm trying to use the getBBox() to get the dimension of mounted component, but...