# SbTabs A tabbed navigation component for switching between different content panels. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | ActiveIndex | int | 0 | The active tab index (0-based) | | ActiveTab | string? | null | The active tab ID (string-based selection) | | LazyLoad | bool | false | Whether to lazy-load tab content | | Vertical | bool | false | When true, tabs are vertical (side-by-side with content) | | Class | string? | null | Additional CSS classes | ## Events | Event | Type | Description | |-------|------|-------------| | ActiveIndexChanged | EventCallback\ | Fired when active tab index changes | | ActiveTabChanged | EventCallback\ | Fired when active tab ID changes | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | ChildContent | RenderFragment | Tab content (SbTab components) | ## CSS Classes - `sb-tabs` - Base class - `sb-tabs--vertical` - Vertical layout (tabs on side, content adjacent). Applied when `Vertical="true"`. - `sb-tabs__list` - Tab list container - `sb-tabs__tab` - Individual tab button - `sb-tabs__tab--active` - Active tab - `sb-tabs__tab--disabled` - Disabled tab - `sb-tabs__tab-icon` - Tab icon - `sb-tabs__tab-label` - Tab label text - `sb-tabs__tab-badge` - Tab badge - `sb-tabs__content` - Content container ## Accessibility - Uses `role="tablist"` and `role="tab"` for tab buttons - Uses `role="tabpanel"` for content panels - Supports `aria-selected`, `aria-controls`, and `hidden` attributes ## Examples ### Basic Usage ```razor

General settings content

Security settings content

Notification settings content

``` ### With Icons ```razor Home content Profile content Settings content ``` ### With Badges ```razor Inbox messages Sent messages Draft messages ``` ### Controlled Tabs (Index-based) ```razor Content 1 Content 2 Content 3 @code { private int activeTab = 0; } ``` ### Controlled Tabs (ID-based) ```razor General content Advanced content About content @code { private string? activeTabId = "general"; } ``` ### Vertical Tabs (sidebar layout) ```razor General settings Security settings ``` ### With Disabled Tab ```razor Active tab content Another tab content This content is inaccessible ``` ### Lazy Loading ```razor

Basic info (loaded immediately)

@* This content is only rendered when tab is first activated *@
``` ### Settings Page Layout ```razor Save Profile Update Password Save Preferences ```