Radio Group
Description
A radio group component with individual radio inputs.
Usage
bc_radio_group(
...,
name,
label = name,
id = name,
disabled = FALSE,
invalid = FALSE
)
Arguments
| Argument | Description |
|---|---|
... |
Radio tags from bc_radio(). |
name |
String. The name attribute applied to every radio in the group, overriding any per-input name. |
label |
String. Accessible label for the group, defaulting to name. |
id |
String. The group id, defaulting to name. Used by bc_shiny_deps() to read and update the checked value as input$id. |
disabled |
Bool. Whether to mark the entire group as disabled. |
invalid |
Bool. Whether to show the invalid state for the group. |
Value
A tag with role="radiogroup".
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")
)