| fa_i {fontawesome} | R Documentation |
<i> tagThe fa_i() function creates a Font Awesome <i> tag and not an SVG as with
fa(). The primary use case for fa_i() is for legacy Shiny applications
that use the shiny::icon() function. This function is called within a
shiny::icon() call and all HTML dependencies to support icon generation are
hosted in the fontawesome package.
fa_i(
name,
class = NULL,
...,
html_dependency = fa_html_dependency(),
verify_fa = TRUE
)
name |
The name of the Font Awesome icon. This could be as a short name
(e.g., |
class |
Additional classes to customize the style of the icon (see the usage examples for details on supported styles). |
... |
Arguments passed to the |
html_dependency |
Provides an opportunity to use a custom
|
verify_fa |
An option to verify the provided icon |
An icon element.
if (interactive()) {
# Create a Font Awesome icon object
fa_i(name = "r-project")
}