Skip to contents

Wrapper for icon that supports svg images

Usage

icon_sb(
  name,
  class = NULL,
  lib = "font-awesome",
  inactive_path = NULL,
  active_path = NULL,
  inactive_props = NULL,
  active_props = inactive_props,
  ...
)

Arguments

name

chr FontAwesome name or image path

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".

inactive_path

chr path to the icon image file in it's inactive (unselected) state, starting with www.

active_path

chr path to the icon image file in it's active (selected) state, starting with www.

...

Arguments passed to the <i> tag of htmltools::tags.

Value

An <i> (icon) HTML tag.

See also

Other ui: acc_list(), add_sass(), box_list(), bs4Alert(), bs_extract_status(), bs_statuses, col_10(), col_11(), col_12(), col_1(), col_2(), col_3(), col_4(), col_5(), col_6(), col_7(), col_8(), col_9(), col_auto(), copyright(), css_props(), dynamic_row(), enurl(), fa_arrow_icon(), infoIcon(), jq_hide(), list_to_li(), list_to_p(), make_action_button(), make_columns(), rep_br(), tagRemoveAttributes(), ui_row(), ui_tabs(), undisplay(), with_red_star()