BlazorXTabs 1.5.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package BlazorXTabs --version 1.5.2
NuGet\Install-Package BlazorXTabs -Version 1.5.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorXTabs" Version="1.5.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlazorXTabs --version 1.5.2
#r "nuget: BlazorXTabs, 1.5.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BlazorXTabs as a Cake Addin
#addin nuget:?package=BlazorXTabs&version=1.5.2

// Install BlazorXTabs as a Cake Tool
#tool nuget:?package=BlazorXTabs&version=1.5.2

BlazorXTabs

An extended tabs component library providing various tab features for Blazor!

GitHub tag (latest SemVer) NuGet Nuget MIT

Screenshot of sample Checkout all the examples at: BlazorXTabs Demo

Main Features:

  • Close tabs
  • Navigate to page and render it as a tab
  • Tabs won't duplicate when navigating to the same page
  • Use XTabs classes to further customize the look
  • Keep tabs state when switching between tabs
  • Bind to events: Selected / Changed / Removed
  • v1.2.0
    • Setup wizard like tabs with events: Previous / Next and customizable previous/next buttons
    • Possibility to set the active tab to Loading
  • v1.3.0
    • Able to drag & drop tabs
  • v1.4.0
    • Able to replace the standard RouteView component with a XTabsRouteView component that automatically renders the pages as tabs
  • v1.5.0
    • When CloseTabs is enabled. Able to close all tabs and configure a threshold to display the close all tabs button.
    • When CloseTabs is enabled. Able to use mouse middle button click to close the tab.
    • When CloseTabs is enabled. Able to limit closeable tabs to 1.

Examples:

Standard usage:
<XTabs>
    <XTab Title="Tab1">
        Content 1
    </XTab>
    <XTab Title="Tab2">
        Content 2
    </XTab>
</XTabs>
Using the XTabsRouteView to render pages as tabs:
<Router AppAssembly="@typeof(Program).Assembly">
    <Found Context="routeData">
        <XTabsRouteView CloseTabs="true" NewTabSetActive="true" RenderMode="BlazorXTabs.Configuration.RenderMode.Full" RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
    </Found>
    <NotFound>
        <LayoutView Layout="@typeof(MainLayout)">
            <p>Sorry, there's nothing at this address.</p>
        </LayoutView>
    </NotFound>
</Router>
Use the XTabPageAttribute to set the page's tab title & other relevant parameters
 @attribute [XTabPageAttribute("Home")]
Using as a wizard:
    <XTab Title="Steps example">
        <XTabs RenderMode="BlazorXTabs.Configuration.RenderMode.Steps">
            <XTab Title="Step1">
                   This is step 1!
            </XTab>
            <XTab Title="Step2">
                This is step 2!
            </XTab>
            <XTab Title="Step3">
                This is the last step. Step 3!
            </XTab>
        </XTabs>
    </XTab>
Drag&Drop:
    <XTab Title="Drag Example">
        <XTabs IsDraggable="true" RenderMode="BlazorXTabs.Configuration.RenderMode.Partial" >
                <XTab Title="1. I can be dragged!!">
                    <p>I can be dragged!!</p>
                </XTab>
                <XTab Title="2. Drag me!">
                    <p>Drag me!</p>
                </XTab>
                <XTab Title="3. Please drag me!! I hate being last place!">
                    <p>Please drag me!! I hate being last place!</p>
                </XTab>
        </XTabs>
    </XTab>

Setup:

  • You can install the package via the nuget package manager just search for BlazorXTabs. You can also install via powershell using the following command.
Install-Package BlazorXTabs
  • Or via the dotnet CLI.
dotnet add package BlazorXTabs
  • If you'd like to bring in XTabs default styling, don't forget to add:
<link href="{YOUR-PROJECT-NAME}.styles.css" rel="stylesheet" />
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 896 11/15/2023
1.9.0 774 3/22/2023
1.8.1 352 12/4/2022
1.8.1-rc 146 10/19/2022
1.8.0-rc 182 8/24/2022
1.7.0 1,422 11/9/2021
1.6.2 336 11/5/2021
1.6.1 391 11/5/2021
1.6.0 365 8/22/2021
1.5.2 348 4/24/2021
1.5.1 406 3/8/2021
1.5.0 353 2/14/2021
1.4.2 354 2/9/2021
1.4.1 367 2/9/2021
1.4.0 359 2/2/2021
1.3.0 437 12/8/2020
1.2.0 424 12/8/2020
1.1.0 469 11/15/2020
1.0.1 809 11/14/2020
1.0.0 838 11/14/2020