@@ -1115,8 +1115,6 @@ def nav_menu(
1115
1115
# Value boxes
1116
1116
# ======================================================================================
1117
1117
def value_box (
1118
- title : TagChild ,
1119
- value : TagChild ,
1120
1118
* ,
1121
1119
showcase : Optional [TagChild ] = None ,
1122
1120
showcase_layout : ui ._valuebox .SHOWCASE_LAYOUTS_STR
@@ -1134,16 +1132,14 @@ def value_box(
1134
1132
1135
1133
This function wraps :func:`~shiny.ui.value_box`.
1136
1134
1137
- An opinionated (:func:`~shiny.ui.card`-powered) box, designed for
1138
- displaying a `value` and `title`. Optionally, a `showcase` can provide for context
1139
- for what the `value` represents (for example, it could hold an icon, or even a
1135
+ An opinionated (:func:`~shiny.ui.card`-powered) box, designed for displaying a title
1136
+ (the 1st child), value (the 2nd child), and other explanation text (other children,
1137
+ if any). Optionally, a `showcase` can provide for context for what the `value`
1138
+ represents (for example, it could hold an icon, or even a
1140
1139
:func:`~shiny.ui.output_plot`).
1141
1140
1142
1141
Parameters
1143
1142
----------
1144
- title,value
1145
- A string, number, or :class:`~htmltools.Tag` child to display as
1146
- the title or value of the value box. The `title` appears above the `value`.
1147
1143
showcase
1148
1144
A :class:`~htmltools.Tag` child to showcase (e.g., an icon, a
1149
1145
:func:`~shiny.ui.output_plot`, etc).
@@ -1184,7 +1180,6 @@ def value_box(
1184
1180
"""
1185
1181
return RecallContextManager (
1186
1182
ui .value_box ,
1187
- args = (title , value ),
1188
1183
kwargs = dict (
1189
1184
showcase = showcase ,
1190
1185
showcase_layout = showcase_layout ,
0 commit comments