@typeparam TItem
@using System.Diagnostics.CodeAnalysis

<table class="table">
    <thead>
    <tr>@TableHeader</tr>
    </thead>
    <tbody>
    @foreach (var item in Items)
    {
        if (RowTemplate is not null)
        {
            <tr>@RowTemplate(item)</tr>
        }
    }
    </tbody>
</table>