Convert SVG files into Svelte Components
"svelvg transforms SVG files into Svelte components and generates a corresponding TypeScript definition.
It converts the SVG file name into a JavaScript-compatible module name (e.g.,
alarm-fill
-->AlarmFill
), forwards$$restProps
to thesvg
element while preserving originalsvg
attributes and adds a defaultslot
as child element tosvg
."
Eric Liu