Displaying Icons
Make use of Font Awesome icons in your templates
Last updated
Make use of Font Awesome icons in your templates
Last updated
You can make use of font-awesome 5 icons in your template through the fa-icon
helper. For a list of available icons please see:
To use the icon helper you must pass in the name of the icon you wish to display. For example, to display the "info" icon you would do the following.
You can change the size of the icon by passing in the size
parameter
To make an icon spin you can add the spin=true
parameter.
For a list of icons that work well as spinners please see:
You can also rotate icons a fixed amount using the rotation
parameter.
Oftentimes you will want to use a list of icons where the icons are all the same width. You can accomplish this using the fixedWidth=true
parameter.
If you'd like to replace the default bullets in a list with icons you can do that as well using the fa-ul
and fa-li
classes.
For more information on how to use the {{fa-icon}}
helper please see