menu

Tabs components

One
Two
Three
One
Show code
<VStack>
    <Tabs @bind-Value="CurrentTab" />
    <Paper Color="ColorLayer.Layer3" DisableShadow="true">
        <Pad>
            @switch (CurrentTab)
            {
                case TabsAvailable.One:
                    @:One
                    break;
                case TabsAvailable.Two:
                    @:Two
                    break;
                case TabsAvailable.Three:
                    <VStack>
                        <StackWeight>Three</StackWeight>
                        <Button Style="Style.Outline" OnClick="() => CurrentTab = TabsAvailable.One">Back to first fab</Button>
                    </VStack>
                    break;
            }
        </Pad>
    </Paper>
</VStack>

@code {
    private TabsAvailable CurrentTab { get; set; }

    public enum TabsAvailable
    {
        One,
        Two,
        Three,
    }
}
An unhandled error has occurred.