Blazor TabStrip Overview

Updated on Mar 25, 2026

The Blazor TabStrip component displays a collection of tabs, containing associated content, which enable the user to switch between different views inside a single component.

ninja-iconThe TabStrip component is part of Telerik UI for Blazor, a professional grade UI library with 110+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.Start Free Trial

Creating Blazor TabStrip

  1. Use the <TelerikTabStrip> tag.
  2. Add a nested <TabStripTab> tag for each tab you want to include in the component.
  3. Set tab titles through the Title parameter of the <TabStripTab> tags.
  4. Optionally, configure other tab settings such as Disabled - read more in the Tabs Configuration article.
  5. Place the desired content in the tabs - it can be any content, including other components.

TabStrip with specified tab position and a disabled tab

Change Theme
Theme
Loading ...

Active Tab Index

By default, the initially selected tab is the first one. You can programmatically control the selected tab through the ActiveTabIndex parameter. Read more about the ActiveTabIndex...

Tabs Configuration

The Tabs are the building blocks of the TabStrip. The component allows individual configuration of the declared <TabStripTab> tags - you can set their title and visibility or put them in disabled state. Read more about the available Tabs configuration options...

Position of the Tabs

The Blazor TabStrip component allows you to control the position of the tabs. Read more about the Tabs Position...

Alignment of the Tabs

The Blazor TabStrip component allows you to control the alignment of the tabs. Read more about the Tabs Alignment...

Tab Size

The Blazor TabStrip component allow you to set different size of the tabs and scroll buttons. Read more about the TabStrip Sizing...

Persist Content

The Blazor TabStrip component can persist the content of the tabs. When the user navigates between the tabs, their content will be hidden with CSS only to avoid re-initialization. Read more about the Persist Content...

Tab Overflow

When you define more tabs than the available space allows, the Blazor TabStrip can handle the overflow with scroll buttons or a dropdown menu. Read more about the Tab Overflow...

Closeable Tabs

The Blazor TabStrip allows tabs to render a close button so users can hide individual tabs. Read more about the Tabs Configuration...

Pinnable Tabs

The Blazor TabStrip supports pinning tabs to the start of the tab list. Pinned tabs stay fixed and cannot be mixed with unpinned tabs during reordering. Read more about Pinnable and Pinned tabs...

Tab Reorder

The Blazor TabStrip allows users to reorder tabs by dragging and dropping them to new positions. Read more about Tab Reordering...

State Management

The Blazor TabStrip exposes state management capabilities through events and methods. You can save, restore, and programmatically manipulate the component state. Read more about State Management...

Dynamic Tabs

The Blazor TabStrip component allows you to create TabStrip tabs dynamically. Read more about the Dynamic Tabs...

Events

The TabStrip fires events when the user changes the active tab (ActiveTabIndexChanged, ActiveTabIdChanged), reorders tabs (OnTabReorder), or when its state changes (OnStateInit, OnStateChanged). Read more about the TabStrip events...

TabStrip Parameters

The TabStrip provides the following features to allow further customization of its behavior:

ParameterType and Default ValueDescription
ActiveTabIndex (Obsolete)intThe index of the currently shown tab. Supports two-way binding. Obsolete — use ActiveTabId instead. Do not use it together with ActiveTabId.
ActiveTabIdstringThe ID of the currently active tab. If not set, the first tab is active. Do not use it together with ActiveTabIndex. Supports two-way binding.
EnableTabReorderboolWhether users can reorder tabs via drag-and-drop. See Tab Reordering.
OnStateInitEventCallback<TabStripStateEventArgs>Fires when the TabStrip initializes its state. Use this to inspect or restore the initial state. See State Management.
OnStateChangedEventCallback<TabStripStateEventArgs>Fires whenever the TabStrip state changes. See State Management.
OnTabReorderEventCallback<TabStripTabReorderEventArgs>Fires when a tab is reordered via drag-and-drop. See Tab Reordering.
OverflowModeTabStripOverflowMode enum
(TabStripOverflowMode.None)
Controls the behavior of tabs when they exceed the available space. The available options are None, Scroll, and Menu. See Tab Overflow.
PersistTabContentboolWhether to remove the content of inactive tabs from the DOM (if false), or just hide it with CSS (if true). See Persist Content.
ScrollableboolObsolete. Use OverflowMode="@TabStripOverflowMode.Scroll" instead.
ScrollButtonsPositionTabStripScrollButtonsPosition enum
(TabStripScrollButtonsPosition.Split)
Specifies the position of the scroll buttons when OverflowMode is Scroll.
ScrollButtonsVisibilityTabStripScrollButtonsVisibility enum
(TabStripScrollButtonsVisibility.Visible)
Specifies the visibility of the scroll buttons when OverflowMode is Scroll.
Sizestring
(ThemeConstants.TabStrip.Size.Medium)
Controls the size of the tabs.
TabAlignmentTabStripTabAlignment enum
(TabStripTabAlignment.Start)
Controls the alignment of the tabs.
TabPositionTabPosition enum
(TabPosition.Top)
Controls the position of the tabs.

Styling and Appearance

The following parameters enable you to customize the appearance of the Blazor TabStrip:.

ParameterTypeDescription
ClassstringThe CSS class that will be rendered on the main wrapping element of the component.
WidthstringThe width of the component. You can set the Width parameter to any of the supported units.
HeightstringThe height of the Component. You can set the Height parameter to any of the supported units.

Templates

TemplateDescription
TabStripSuffixTemplateA RenderFragment rendered after the tab list, inside the TabStrip container. Use this to add custom content such as action buttons or navigation elements. When you use OverflowMode.Menu, include the TabStripOverflowMenu component inside this template to preserve overflow menu functionality.

TabStrip Reference and Methods

The TabStrip methods are accessible through its reference.

MethodReturn TypeDescription
GetStateTabStripStateReturns the current state of the TabStrip. See State Management.
RefreshvoidRedraws the component.
SetStatevoidAccepts a TabStripState object and applies it to the TabStrip. See State Management.

Get a reference to the TabStrip and use its methods.

RAZOR
@* This code snippet demonstrates usage of the TabStrip Refresh() method. *@

<TelerikTabStrip @ref="@TabRef">
    <CityPopulation TabRef="TabRef" />
</TelerikTabStrip>

@code {
    public TelerikTabStrip TabRef { get; set; }
}

Next Steps

See Also