Radio
radio.Rmd
The radio()
component enables users to select a single option from a set of options.
See the official documention for radio, for all the correct props.
Examples
radio_group(
id = "radio",
radio(
"hello",
text = "hello",
checked = TRUE
),
radio(
"world",
text = "world"
)
)
radio_group(
id = "radio",
radio(
"first",
text = "Item 1",
`value-state` = "Warning"
),
radio(
"second",
text = "Item 2",
`value-state` = "Error"
),
radio(
"third",
text = "Item 3",
`value-state` = "Success"
)
)