Radio Group
A component for presenting a list of mutually exclusive options. Supports inline and vertical layouts and raises an event when selection changes.
Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.
Radio Group
MgRadioGroupAPI Reference: MgRadioGroup
| Property | Type | Default | Description |
|---|---|---|---|
| RadioGroupName | string | null | The 'name' attribute for the radio inputs. |
| Options | List<MgOption<string>> | [] | List of options to display. |
| IsInline | bool | false | If true, displays options in a horizontal line. |
| RadioColour | string | "blue" | Tailwind color name for the radio accent. |
| SelectedKey | string | null | The key of the currently selected option. |
| ItemChanged | EventCallback<MgOption<string>> | - | Triggered when an option is selected. |