Dusty Pomerleau Profile picture
Full-stack web hobbyist tweeting about Rust, Svelte, and Postgres. I also ♥︎ Elixir and the BEAM community. VS Code extensions: Tol, Yarra Valley, Rust Syntax.
Jul 30, 2021 8 tweets 3 min read
I've a experimented with a few different ways of handling SVG icons in Svelte. Here's a brief thread about the workflow that I'm enjoying lately.

↓↓↓ I looked at using <img> tags, directly inlining the SVG, and passing the SVG as a component. Of these three, the last is the one that seems to result in the most maintainable code