Skip to contents

Creates a styled value box for displaying a single metric.

Usage

r4sub_value_box(title, value, theme = "primary", subtitle = NULL)

Arguments

title

Character label.

value

The value to display.

theme

Character theme: "primary", "success", "warning", "danger", "info". Default "primary".

subtitle

Optional subtitle text.

Value

A bslib::value_box element.

Examples

box <- r4sub_value_box("SCI Score", 85.2, theme = "success")
class(box)
#> [1] "bslib_fragment" "bslib_fragment" "shiny.tag"