Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions components/tabstrip/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ The Tabs are the building blocks of the TabStrip. The component allows individua

The Blazor TabStrip component allows you to control the position of the tabs. [Read more about the Tabs Position...]({%slug tabstrip-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...]({%slug tabstrip-tabs-alignment%})

## 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...]({%slug tabstrip-persist-content%})
Expand All @@ -72,6 +76,8 @@ The TabStrip provides the following features to allow further customization of i
|`PersistTabContent` | `bool` | Whether to remove the content of inactive tabs from the DOM (if `false`), or just hide it with CSS (if `true`). See [Persist Content]({%slug tabstrip-persist-content%})
| `Scrollable` | `bool` | Whether the tabs will be scrollable. See [Scrollable Tabs]({%slug tabstrip-scroll-tabs%})
| `TabPosition` | `TabPosition` enum <br/> (`TabPosition.Top`)| Controls the position of the tabs.
| `TabAlignment` | `TabStripTabAlignment` enum <br/> (`TabStripTabAlignment.Start`)| Controls the alignment of the tabs.


### Styling and Appearance

Expand Down Expand Up @@ -131,12 +137,12 @@ The `TabStrip` methods are accessible through its reference.
## Next Steps

* [Configure the Tabs]({%slug tabstrip-tabs-configuration%})
* [Explore the supported Tab positions]({%slug tabstrip-tabs-position%})
* Explore the supported Tab [positions]({%slug tabstrip-tabs-position%}) and [alignments]({%slug tabstrip-tabs-alignment%})
* [Handle the TabStrip events]({%slug tabstrip-events%})

## See Also

* [Live Demo: TabStrip](https://demos.telerik.com/blazor-ui/tabstrip/index)
* [Live Demo: Tab Positions](https://demos.telerik.com/blazor-ui/tabstrip/tab-positions)
* [Live Demo: Tabs Position and Alignment](https://demos.telerik.com/blazor-ui/tabstrip/position-and-alignment)
* [Events]({%slug tabstrip-events%})
* [TabStrip API Reference](/blazor-ui/api/Telerik.Blazor.Components.TelerikTabStrip)
41 changes: 41 additions & 0 deletions components/tabstrip/tabs-alignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: Tabs Alignment
page_title: TabStrip Tabs Alignment
description: The TabAlignment parameter in the TabStrip component allows you to control the alignment of the tabs. By default, tabs align to the left of the TabStrip header.
slug: tabstrip-tabs-alignment
tags: telerik,blazor,tab,strip,tabstrip,alignment
published: True
position: 11
---

# TabStrip Tabs Alignment

By design, the tabs are displayed on the left side of the TabStrip header.

You can customize their alignment through the `TabAlignment` parameter. It takes a member of the `Telerik.Blazor.TabStripTabAlignment` enumeration:

* `Start` (default)
* `End`
* `Center`
* `Justify`
* `Stretched`

>caption Set the desired tab alignment.

````CSHTML
<TelerikTabStrip TabAlignment="@TabStripTabAlignment.End">
<TabStripTab Title="First">
First tab content.
</TabStripTab>
<TabStripTab Title="Second">
Second tab content.
</TabStripTab>
<TabStripTab Title="Third">
Third tab content.
</TabStripTab>
</TelerikTabStrip>
````

## See Also

* [Live Demo: TabStrip - Tabs Position and Alignment](https://demos.telerik.com/blazor-ui/tabstrip/position-and-alignment)
4 changes: 2 additions & 2 deletions components/tabstrip/tabs-position.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Tabs Position
page_title: TabStrip Tabs Position
description: Overview of the TabStrip for Blazor.
description: The TabPosition parameter in the TabStrip component allows you to control the positioning of the tabs. By default, tabs are positioned at the top of the TabStrip.
slug: tabstrip-tabs-position
tags: telerik,blazor,tab,strip,tabstrip,position
published: True
Expand Down Expand Up @@ -37,4 +37,4 @@ You can customize their position through the optional `TabPosition` attribute of

## See Also

* [Live Demo: TabStrip - Tab Positions](https://demos.telerik.com/blazor-ui/tabstrip/tab-positions)
* [Live Demo: TabStrip - Tabs Position and Alignment](https://demos.telerik.com/blazor-ui/tabstrip/position-and-alignment)
Loading