made with Svelte

svelvg

Convert SVG files into Svelte Components

Visit Site

Description

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 the svg element while preserving original svg attributes and adds a default slot as child element to svg."


Creator

Eric Liu


Social Media Links

Svelte Umami Umami Analytics Integration for Svelte & SvelteKit
icon-eye-dark Created with Sketch. 719
Kinetic Scroll Momentum Scroller
icon-eye-dark Created with Sketch. 946
Sentry for Svelte Svelte Error & Performance Monitoring
๐Ÿงก Sponsored by Friends
Svelteworld List of Countries
icon-eye-dark Created with Sketch. 1.378
Svelte Headroom Hide your Header on Scroll
icon-eye-dark Created with Sketch. 2.481
Renderless Svelte Collection of renderless Svelte Components
icon-eye-dark Created with Sketch. 2.978