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

TanStack Svelte Store State Management Library
icon-eye-dark Created with Sketch. 414
Svelte Social Auth Google & Facebook Authentication
icon-eye-dark Created with Sketch. 6.080
Sentry for Svelte Svelte Error & Performance Monitoring
🧑 Sponsored by Friends
We’re hosting on Digital Ocean! πŸ’™ Try it today and get a free $100 credit.
Svelte Store Router Store-based Router
icon-eye-dark Created with Sketch. 1.808
svelte-reparent Reparent HTML Elements
icon-eye-dark Created with Sketch. 347