# TabStrip Scrollable Tabs and Overflow Menu

The Telerik TabStrip for Blazor provides three built-in mechanisms to handle scenarios in which the tabs do not fit in the available space. This article describes how to set up tab scrolling and how to use a dropdown menu to display the overflowing tabs.

## Basics

The TabStrip provides an `OverflowMode` parameter, which controls how the component handles scenarios with too many tabs that don't fit in a single row in the available space. The parameter expects a [`TabStripOverflowMode` enum](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.components.tabstripoverflowmode) value:

* `None` (default)—Tabs wrap to multiple rows.
* `Scroll`—All tabs remain on a single row or column, and scroll buttons appear.
* `Menu`—The TabStrip displays a dropdown menu after the last tab that fits in the available space. The dropdown lists all the other [visible tabs](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/tabs-collection#hiding-and-showing-tabs).

> The TabStrip `Scrollable` parameter is deprecated and must be replaced by `OverflowMode` in Telerik UI for Blazor 13.1.0 and later versions.

## Tab Scrolling

The built-in tab scrolling is enabled when the TabStrip `OverflowMode` parameter is set to `Scroll`. The tab scrolling UX depends on two additional TabStrip parameters:

* [`ScrollButtonsVisibility`](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.tabstripscrollbuttonsvisibility)—Sets whether the scroll buttons display always, never or only when necessary (default).
* [`ScrollButtonsPosition`](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.tabstripscrollbuttonsposition)—Sets whether the scroll buttons display before the tabs, after the tabs, or one on each side (default).

The `Start` and `End`  values of `ScrollButtonsPosition` take into account if [right-to-left mode](https://www.telerik.com/blazor-ui/documentation/globalization/rtl-support) is being used.

> caption Using scrollable TabStrip tabs

<demo metaUrl="client/tabstrip/scrollable-tabs/example-3/" height="440"></demo>

## Overflow Menu

The TabStrip tab overflow menu is a [DropDownButton](https://www.telerik.com/blazor-ui/documentation/components/dropdownbutton/overview) that renders when the TabStrip `OverflowMode` parameter is set to `Menu`. The menu collects tabs that do not fit and lets users activate them from the dropdown. If there are no overflowing tabs, the DropDownButton is disabled.

If the user activates a tab from the overflow menu, it moves to the list of visible tabs, and one tab from the visible list moves to the overflow menu.

The TabStrip exposes the built-in overflow menu as a separate [`TabStripOverflowMenu` component](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/scrollable-tabs#tabstripoverflowmenu-component) that you can use inside the [`TabStripSuffixTemplate`](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/templates#suffix-template).

> caption Using the TabStrip overflow menu

<demo metaUrl="client/tabstrip/scrollable-tabs/example-2/" height="420"></demo>

## TabStripOverflowMenu Component

The [TabStrip Overflow Menu](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/scrollable-tabs#overflow-menu) renders in the default [`TabStripSuffixTemplate`](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/templates#suffix-template). To use a custom Suffix Template together with `Menu` `OverflowMode`, you must:

1. Define a `TabStripOverflowMenu` component in the `<TabStripSuffixTemplate>` child content.
2. Obtain the reference to the `TabStripOverflowMenu` component instance with a `@ref` atttribute.
3. Call the `Refresh()` method of the Overflow Menu instance whenever the [visible tabs or tab count change](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/tabs-collection).

See the [TabStriptOverflowMenu component API reference](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.components.tabstripoverflowmenu) for all available parameters and methods.

> caption Using TabStripOverflowMenu component in TabStripSuffixTemplate

<demo metaUrl="client/tabstrip/scrollable-tabs/example-1/" height="420"></demo>

## Next Steps

* [Persist tab content on active tab change](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/persist-content)
* [Reorder and pin tabs](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/tab-reorder)
* [Customize TabStrip UI with templates](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/templates)
* [Change the number of tabs at runtime](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/tabs-collection)
* [Manage TabStrip state](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/state)
* [Handle TabStrip events](https://www.telerik.com/blazor-ui/documentation/components/tabstrip/events)

## See Also

* [Live Demo: TabStrip Scrollable Tabs](https://demos.telerik.com/blazor-ui/tabstrip/scrollable-tabs)
* [Live Demo: TabStrip Overflow Menu](https://demos.telerik.com/blazor-ui/tabstrip/tab-overflow)
