@inherits LocalizableComponentBase @* A block of nerd stats: a monospace list of label/value rows under its heading, rows with no value left out; in a NerdTip's tooltip, in the sheet a tap opens on a touch screen, and in a card's Details on a phone. *@
@if (Heading is { Length: > 0 }) {

@Heading

}
@foreach (var row in Rows.Where(row => !string.IsNullOrEmpty(row.Value))) {
@row.Label
@row.Value
}
@if (Pending) {

@Localizer["loading"]…

}
@code { [Parameter] public string Heading { get; set; } [Parameter] public IEnumerable Rows { get; set; } = []; /// Shown under the rows while the stats being read on demand arrive. [Parameter] public bool Pending { get; set; } protected override void OnInitialized() => IsLoading = false; }