# Radio Group > Radio button group for single selection from multiple choices. Source: https://shellui.dev/docs/v0.3/components/form/radio-group The RadioGroup and RadioGroupItem components provide a group of radio buttons for selecting a single option. ## Installation ```bash shellui add radio-group ``` ## Usage ### Basic ```razor Option 1 Option 2 Option 3 @code { private string? selected; private void HandleChanged(string value) { selected = value; } } ``` ### Two-way Binding ```razor Small Medium Large @code { private string? selectedSize; } ``` ### With Label ```razor
Extra Small Small Medium Large
@code { private string? selectedSize; } ``` ### Disabled Item ```razor Active Disabled Other @code { private string? selected; } ``` ## API Reference ### RadioGroup | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `Value` | `string?` | `null` | Currently selected value | | `ValueChanged` | `EventCallback` | — | Fires when selection changes | | `ChildContent` | `RenderFragment` | `null` | RadioGroupItem children | ### RadioGroupItem | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `Value` | `string` | — | Item value (required) | | `ChildContent` | `RenderFragment` | `null` | Item label content | | `Disabled` | `bool` | `false` | Disables this radio item | ## Accessibility - Proper ARIA attributes (`role="radio"`, `aria-checked`) - Arrow key navigation between items - Screen reader compatible