info_box | R Documentation |
Generates 'HTML' info box
info_box(
...,
icon = "envelope",
class = "",
class_icon = "bg-info",
class_content = "",
root_path = template_root()
)
... |
box content |
icon |
the box icon; default is |
class |
class of the box container |
class_icon |
class of the icon |
class_content |
class of the box body |
root_path |
see |
'HTML' tags
library(shiny)
library(shidashi)
info_box("Message", icon = "cogs")
info_box(
icon = "thumbs-up",
span(class = "info-box-text", "Likes"),
span(class = "info-box-number", "12,320"),
class_icon = "bg-red"
)
info_box("No icons", icon = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.