This time, I will explain how to install Font Awesome and how to display it.
gem "font-awesome-sass"
$ bundle install
@import "font-awesome-sprockets";
@import "font-awesome";
This completes the installation.
I will use the icon helper method. The example of how to use it is like this.
icon('Prefix name', 'Icon name')
It looks like this when actually used.
= icon('fab', 'facebook-square') #Example
Check the following sites for prefix names and icon names and use them! https://fontawesome.com/
Recommended Posts