valueBoxCustom: A custom value box

View source: R/utils.R

valueBoxCustomR Documentation

A custom value box

Description

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

Usage

valueBoxCustom(
  value,
  subtitle,
  icon = NULL,
  color = "white",
  background = "aqua",
  width = 4,
  href = NULL
)

Arguments

value

The value to display in the box. Usually a number or short text.

subtitle

Subtitle text.

icon

An icon tag, created by icon.

color

A color for the box.

href

An optional URL to link to.


taylordunn/canadacovidshiny documentation built on July 3, 2023, 8:49 a.m.