Una opción entre varias, con el aspecto del tema.
AstrolRadioGroup guarda el valor elegido y cada AstrolRadio es una opción con su Value. El tipo se deduce solo (texto, números, enumeraciones...). Con el foco en una opción, las flechas cambian de opción.
@using Astrol.Component.Basic.Form <AstrolRadioGroup @bind-Value="payment" AriaLabel="Payment method"> <AstrolRadio Value="@("card")" Text="Card" /> <AstrolRadio Value="@("transfer")" Text="Bank transfer" /> <AstrolRadio Value="@("cash")" Text="Cash" Disabled="true" /></AstrolRadioGroup> @* Any type: enums, numbers, objects... In a row with Horizontal *@<AstrolRadioGroup @bind-Value="theme" Horizontal="true" AriaLabel="Theme"> @foreach (var item in Enum.GetValues<AstrolThemeMode>()) { <AstrolRadio Value="item" Text="@item.ToString()" /> }</AstrolRadioGroup>@code { private string? payment = "card"; private AstrolThemeMode theme = AstrolThemeMode.Auto;}AstrolRadioGroup<TValue>
AstrolRadio<TValue>