You need to have a MudRadioGroup to contain your MudRadio buttons. On the MudRadioGroup you have the @bind-SelectedOption event callback exposed. You can set a switch statement on that to dynamically render your other components.
Parent Component:
Primary
@switch(SelectedOption)
{
case "Add":
break;
}
Reset
Selected Option: @SelectedOption
@code {
public string SelectedOption { get; set; }
private void Reset()
{
SelectedOption = null;
}
}
TestComponent.razor
Hi from: TestComponent