Create an icon — icon
R/bootstrap.R
Description
Create an icon for use within a page. Icons can appear on their own, inside
of a button, and/or used with tabPanel() and navbarMenu().
Arguments
- name
The name of the icon. A name from either Font Awesome (when
lib="font-awesome") or Bootstrap Glyphicons (whenlib="glyphicon") may be provided. Note that the"fa-"and"glyphicon-"prefixes should not appear in name (i.e., the"fa-calendar"icon should be referred to as"calendar"). AnameofNULLmay also be provided to get a raw<i>tag with no library attached to it.- class
Additional classes to customize the style of an icon (see the usage examples for details on supported styles).
- lib
The icon library to use. Either
"font-awesome"or"glyphicon".- ...
Arguments passed to the
<i>tag of htmltools::tags.
Value
An <i> (icon) HTML tag.
See also
For lists of available icons, see https://fontawesome.com/icons and https://getbootstrap.com/docs/3.3/components/#glyphicons