Using Font Awesome 5.7 icons in Shiny apps

Viewed 2469
1 Answers

Adding the following line to your ui.r file will expand Shiny support for Font Awesome 5.7.2 icons:

tags$style("@import url(https://use.fontawesome.com/releases/v5.7.2/css/all.css);"),

Afterwards, you can use the function icon("icon-name") in your Shiny web app. For example, you can use icon("vote-yea") to check if these new Font Awesome icons are working as intended.

Related