# SbTab A single tab panel component used within SbTabs. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Id | string? | null | Unique identifier for ID-based tab selection | | Label | string | "" | Tab label text displayed in the tab button | | Disabled | bool | false | Whether the tab is disabled | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | Icon | RenderFragment | Icon content displayed in the tab button | | Badge | RenderFragment | Badge content displayed in the tab button | | ChildContent | RenderFragment | Tab panel content | ## Cascading Parameters | Parameter | Type | Description | |-----------|------|-------------| | Parent | SbTabs | Parent tabs container | ## CSS Classes - `sb-tab-panel` - Base class for panel - `sb-tab-panel--active` - When panel is active - `sb-tabs__panel` - Tabs panel container class ## Examples ### Basic Usage ```razor

Content for the first tab

Content for the second tab

``` ### With ID for Controlled Selection ```razor Overview content Details content History content @code { private string? activeTabId = "overview"; private void GoToHistory() => activeTabId = "history"; } ``` ### With Icon ```razor

Settings content goes here

``` ### With Badge ```razor

You have 3 new messages

``` ### Icon and Badge Combined ```razor ``` ### Disabled Tab ```razor This tab is available Premium content - upgrade to access @code { private bool isPremiumUser = false; } ``` ### Complex Tab Content ```razor Users List Add User Role Management @foreach (var role in roles) { @role.Name

@role.Description

}
```