Create a font icon.

fdIcon(name, class = NULL, lib = "font-awesome", ...)

Arguments

name
name of the icon
class
html class attribute to add. See details for an example.
lib
font library to use. See details.
...
extra items to be passed to the icon.

Details

This function supports four font libraries at present. A detailed list of fonts can be found on the pages listed below. The name to pass to fdIcon should be devoid of any of the suffixes used. For example to use a glyphicon named glyphicon glyphicon-asterisk, you would use the name asterisk and set lib to glyphicon.

You can use the class argument to add extra classes to the icon. This is useful when you want to drive behavior. For example an icon marked with the class popover could display a help note on being clicked.