@sv/svg-sprites
Compiles svgs in a directory to a spritesheet and make it available as text or blob.
Includes a CustomElement that makes it easy to use any icon.
Or SSR the SVG symbols into the page, for use with <use href="..."/>
tags.
Installation
Make sure your project is set up with access to the registry as described in Setup.
Usage
Vite configuration
Next / Webpack configuration
Component Usage
Changelog
Fixes
- Optimize svg icon component
0.5.1 (2025-01-06)
Fixes
- Fix svg code included twice
...
Full changelog