RadioGroup
FreeOne choice from a short list. Use Items for simple lists or Radio children for custom labels. Arrow keys move the selection, as with native radio buttons.
Example

Parameters
RadioGroup
| Parameter | Type | Description |
|---|---|---|
ChildContent | RenderFragment | Content rendered inside the component. |
Class | string | Extra CSS classes added to the root element. |
Direction | StackDirection | Row (default) or Column. |
Disabled | bool | Disables interaction. |
DisplayName | string | Name used in validation messages. |
HelperText | string | Hint shown below the field. |
Items | IEnumerable<TValue> | The options to choose from. |
ItemText | Func<TValue, string> | Converts an item to its display text (defaults to ToString()). |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
ReadOnly | bool | Shows the value but does not allow changes. |
Style | string | Inline style added to the root element. |
Value | TValue | Current value. Use with @bind-Value. |
Radio
| Parameter | Type | Description |
|---|---|---|
ChildContent | RenderFragment | Content rendered inside the component. |
Class | string | Extra CSS classes added to the root element. |
Disabled | bool | Disables interaction. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
Style | string | Inline style added to the root element. |
Value | TValue | Current value. Use with @bind-Value. |
Events
RadioGroup
| Event | Type | Description |
|---|---|---|
ValueChanged | EventCallback<TValue> | Raised when the value changes. |
Package
RadioGroup is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Related controls
Send feedbackVersion 1.0.3