twig-tips

Use the svg() function.

https://craftcms.com/docs/3.x/dev/functions.html#svg

Can also pass an asset!

{{ svg('@webroot/icons/lemon.svg')|attr({ class: 'w-4 h-4' }) }}