Default Light
MgLibrary
Overview
Installation
Buttons
Cards
Charts
Codes
Data Grids
Dropdowns
Editors
Headers & Animations
Icons
Indicators
Inputs
Lists
Modals
Menus
Panels
Pills & Chips
Scheduling
Tabs
Time Line
Trees
Customization

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

MgRadioGroup

API 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.
An unhandled error has occurred. Reload 🗙