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 Realtime Native WebSocket RPC & Reactive Subscriptions for SvelteKit
icon-eye-dark Created with Sketch. 249
Svelte Forms Lib Lightweight Library for Managing Forms
icon-eye-dark Created with Sketch. 9.581
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 Portal Render DOM outside of a component
icon-eye-dark Created with Sketch. 3.598
Svelte Intersection Observer Detect if an Element is in the Viewport
icon-eye-dark Created with Sketch. 5.038