Skip to content

IconImg Twig

Usage

After you install the package, include the template in your project:

twig
{% include  '@ui/Icon/IconImg.twig' with {
  name: 'globe',
} %}

You will be able to use local SVG files if you configured the Twig Extension with the $svg_path parameter.

All Iconify sets can also be used by specifying a name following the pattern collection:icon-name. You can browse, search and find icons from the Iconify sets with icones.js.org.

twig
{% include  '@ui/Icon/IconImg.twig' with {
  name: 'mdi:globe',
} %}