
Svelvg
Convert SVG files into Svelte Components
Creator
Eric Liu
Description
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 the svg element while preserving original svg attributes and adds a default slot as child element to svg.Visit Site