Skip to contents

Creates a link to a Shiny icon

Usage

icon_link(href, target = "_blank", icon_name = "circle-info")

Arguments

href

URL to link to.

target

New tab name.

icon_name

Name of icon to use (arguemnt to shiny::icon, default: "circle-info")

Value

A list with a shiny.tag class that can be converted into an HTML string via as.character() and saved to a file with save_html(). Note if href is NULL then NULL is returned.

Examples

icon_link(href="https://formods.ubiquity.tools")
#> <a href="https://formods.ubiquity.tools" target="_blank">
#>   <i class="fas fa-circle-info" role="presentation" aria-label="circle-info icon"></i>
#> </a>