SVG

Add SVG with ease in your main content or in a template file via a twig function.

Install

composer require pushword/svg

Usage

By default, this extension use FontAwesome 5.15. You just need to use twig svg function :

svg('surprise')

Will show

Configure

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.