derrabus/twig-awesome-bundle

Inline FontAwesome icons into Twig templates.

Installs: 602

Dependents: 0

Suggesters: 0

Security: 0

Stars: 15

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

v4.2.0 2024-03-03 21:55 UTC

This package is auto-updated.

Last update: 2024-04-03 22:05:28 UTC


README

This bundle integrates the icon font Font Awesome 6 into Twig. But instead of using CSS to render icons on the frontend, the icons are rendered as SVG images directly into the compiled Twig template.

Example

This example renders a flag icon. Please note that you should wrap the icon in a div or similar element in order to adjust its size.

<div style="height: 10em;">{% fa regular flag %}</div>