<div class="admin-skeleton-stack">
    @for (var i = 0; i < Rows; i++)
    {
        <div class="admin-skeleton-row">
            @for (var j = 0; j < Columns; j++)
            {
                <div class="admin-skeleton-block @GetWidthClass(j)" />
            }
        </div>
    }
</div>

@code {
    [Parameter]
    public int Rows { get; set; } = 4;

    [Parameter]
    public int Columns { get; set; } = 3;

    private static string GetWidthClass(int index) => index switch
    {
        0 => "w-40",
        1 => "w-25",
        _ => "w-20"
    };
}
