# demo-reuse-tabs **Repository Path**: ant-design-blazor/demo-reuse-tabs ## Basic Information - **Project Name**: demo-reuse-tabs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2021-07-06 - **Last Updated**: 2024-01-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ReuseTabs A reuse tabs demo for [Ant Design Blazor](https://github.com/ant-design-blazor/ant-design-blazor). # Demo https://antblazor.com/demo-reuse-tabs/ # ScreenShot ![demo](./assets/reuse-tabs-demo1.gif) # How to use ## Prerequisites Follow the installation steps of AntDesign and install the AntDeisgn dependencies. ## Basic case 1. First of all, create a blazor project using `dotnet new` command. 2. Modify the `App.razor` file, replace the `RouteView` with `ReuseTabsRouteView`. ```diff - + ... ``` 3. Then modify the `MainLayout.razor` file, add the `ReuseTabs` component. Note that @Body is not required at this case. ```diff @inherits LayoutComponentBase
-
- About -
-
- @Body -
+
``` ## Customize tab title - If it's just text, you can use the `ReuseTabsPageTitle` attribute. ```diff @page "/counter" + @attribute [ReuseTabsPageTitle("Counter")] ``` - If you want to use a template, then implement the IReuseTabsPage interface and implement the method ```diff @page "/" + @implements IReuseTabsPage

Hello, world!

@code{ + public RenderFragment GetPageTitle() => + @
+ Home +
+ ; } ```