value_box: Create a valueBox.

Description Usage Arguments Value Functions Examples

View source: R/value_box.R

Description

Create a valueBox with additional UI elements.

Usage

1
2
3
4
5
value_box(subtitle, value, icon = NULL, color = "blue", width = 5, size = "")

valueBox(subtitle, value, icon = NULL, color = "blue", width = 5, size = "")

infoBox(subtitle, value, icon = NULL, color = "blue", width = 5, size = "")

Arguments

subtitle

Label of the valueBox.

value

Value of the valueBox.

icon

Icon of the valueBox.

color

Color of the valueBox. One of c("", "red", "orange", "yellow", "olive", "green", "teal", "blue", "violet", "purple", "pink", "brown", "grey", "black")

width

Width of the valueBox.

size

Size of value. One of c("mini", "tiny", "small", "", "large", "huge"). Default is "".

Value

A valueBox that can be passed to dashboardBody

Functions

Examples

1
valueBox("Unread Mail", 44, icon("mail"), color = "blue", width = 5, size = "tiny")

Example output

Attaching package:semantic.dashboardThe following object is masked frompackage:graphics:

    box

<div class="five wide column">
  <div class="ui fluid card blue">
    <div class="ui statistic tiny">
      <div class="value">
        <i class="mail icon"></i>
        44
      </div>
      <div class="label">Unread Mail</div>
    </div>
  </div>
</div>

semantic.dashboard documentation built on Nov. 10, 2021, 1:06 a.m.