Add SVG with ease in your main content or in a template file via a twig function.
composer require pushword/svg
By default, this extension use FontAwesome 5.15. You just need to use twig svg
function :
svg('surprise')
Will show
By default, this extension load FontAwesome 5.15's icons. You can choose to use your custom SVG icons by specifyng the svg_dir
in your app config or under pushword_svg
.