<MudTabs ActivePanelIndex="this.SelectedIndex" ActivePanelIndexChanged="async idx => await this.TabChanged(idx)" PanelClass="code-block mt-1" MinimumTabWidth="30px" Class="mt-2">
    @foreach (var block in this.blocks)
    {
        <MudTabPanel Text="@block.Title">
            @block.Fragment
        </MudTabPanel>
    }
</MudTabs>
<CascadingValue Value="this">
    @this.ChildContent
</CascadingValue>
