#' Icon Text
#'
#' Creates an HTML div containing the icon and text.
#'
#' @param icon fontawesome icon
#' @param text text
#'
#' @return HTML div
#' @export
#'
#' @examples
#' icon_text("table", "Table")
#'
#' @importFrom shiny icon tagList
#' @importFrom htmltools div
icon_text <- function(icon, text) {
i <- shiny::icon(icon)
t <- paste0(" ", text)
shiny::tagList(htmltools::div(i, t))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.