← 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.
| Argument | Type | Default | Description |
|---|---|---|---|
| input_id | character | required | Radio group selector key. |
| choices | list | character | required | Available selection dictionary choices. |
| selected | character | NULL | Default selected value selector. |
| disabled | logical | FALSE | Lock option selection buttons. |
| invalid | logical | FALSE | Validation highlight boundary. |
| orientation | 'vertical' | 'horizontal' | 'vertical' | Flex layout style directions. |
| style | character | NULL | Inline styling string. |
| class | character | NULL | Merge styling classes. |
update_block_radio_group()
Replaces option selections, validation outlines, or list choices from Shiny servers.
| Argument | Type | Default | Description |
|---|---|---|---|
| session | ShinySession | required | Shiny web session object context. |
| input_id | character | required | Radio group input ID. |
| choices | list | character | NULL | New options layout database choices. |
| selected | character | NULL | Value to programmatically select. |
| disabled | logical | NULL | Block/allow group item selection. |
| invalid | logical | NULL | Apply invalid highlight state borders. |