← Back to Components

Radio Group

Set of mutually exclusive options with clean arrow keyboard support.

Interactive Playground

R Code

API Reference

block_radio_group()

Groups mutually exclusive options together under arrow-navigable radio circles.

ArgumentTypeDefaultDescription
input_idcharacterrequiredRadio group selector key.
choiceslist | characterrequiredAvailable selection dictionary choices.
selectedcharacterNULLDefault selected value selector.
disabledlogicalFALSELock option selection buttons.
invalidlogicalFALSEValidation highlight boundary.
orientation'vertical' | 'horizontal''vertical'Flex layout style directions.
stylecharacterNULLInline styling string.
classcharacterNULLMerge styling classes.

update_block_radio_group()

Replaces option selections, validation outlines, or list choices from Shiny servers.

ArgumentTypeDefaultDescription
sessionShinySessionrequiredShiny web session object context.
input_idcharacterrequiredRadio group input ID.
choiceslist | characterNULLNew options layout database choices.
selectedcharacterNULLValue to programmatically select.
disabledlogicalNULLBlock/allow group item selection.
invalidlogicalNULLApply invalid highlight state borders.