@inject WizardState State

What's this device for?

Choose the flavour that best matches how this PC will be used.

@foreach (var f in Flavours) {

@f.Label

@f.Description

}
@code { [Parameter] public IReadOnlyList Flavours { get; set; } = Array.Empty(); /// Notifies the wizard host when the selection changes so it re-evaluates /// the Next button (otherwise Next stays disabled until a back/forward re-render). [Parameter] public EventCallback OnSelected { get; set; } protected override async Task OnInitializedAsync() { State.Flavour ??= Flavours.FirstOrDefault(f => f.IsDefault); await OnSelected.InvokeAsync(); } async Task Select(FlavourManifest f) { State.Flavour = f; await OnSelected.InvokeAsync(); } }