Displaying Icons
Make use of Font Awesome icons in your templates
General Usage
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: https://fontawesome.com/icons?d=gallery
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.
Sizing Icons
You can change the size of the icon by passing in the size
parameter
Spinning and Rotating Icons
To make an icon spin you can add the spin=true
parameter.
For a list of icons that work well as spinners please see: https://fontawesome.com/icons?d=gallery&c=spinners
You can also rotate icons a fixed amount using the rotation
parameter.
Fixed Width Icons
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.
Icons in List
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 https://github.com/FortAwesome/ember-fontawesome
Last updated