Radio Group
Description
Create a set of radio buttons where the user selects one.
Usage
bc_radio_group(
...,
name,
label = name,
id = name,
disabled = FALSE,
invalid = FALSE
)
Arguments
| Argument | Description |
|---|---|
... |
Radio buttons from bc_radio(). |
name |
String. The form field name for the group. |
label |
String. Accessible name for the group. Defaults to name. |
id |
String. The group ID. Defaults to name. With bc_shiny_deps(), the selected value is input$id. |
disabled |
Bool. Whether the group is disabled. Defaults to FALSE. |
invalid |
Bool. Whether to show the invalid state. Defaults to FALSE. |
Value
An htmltools tag.
Examples
bc_radio_group(
name = "density",
bc_radio("default", "Default"),
bc_radio("comfortable", "Comfortable"),
bc_radio("compact", "Compact")
)
bc_radio_group(
name = "plan",
bc_radio("monthly", "Monthly", checked = TRUE),
bc_radio("yearly", "Yearly"),
bc_radio("lifetime", "Lifetime")
)