valueBoxCustom | R Documentation |
A slightly adapted 'shinydashboard::valueBox' function which allows for other colors (besides the 'shinydashboard::validColors'). Credit goes to [this user on the RStudio forum](https://community.rstudio.com/t/shinydashboard-custom-box-colors-to-match-brand/14147/5).
valueBoxCustom(
value,
subtitle,
icon = NULL,
color = "white",
background = "aqua",
width = 4,
href = NULL
)
value |
The value to display in the box. Usually a number or short text. |
subtitle |
Subtitle text. |
icon |
An icon tag, created by |
color |
A color for the box. |
href |
An optional URL to link to. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.