BOBTabs
Tab panels with three visual variants. Declare tabs as children — the active one renders automatically.
API reference ↗Basic usage
Overview content — the first tab is active by default.
RAZOR
<BOBTabs @bind-ActiveTab="_basic">
<BOBTab Id="overview" Label="Overview">
Overview content — the first tab is active by default.
</BOBTab>
<BOBTab Id="details" Label="Details">
Details content.
</BOBTab>
<BOBTab Id="reviews" Label="Reviews">
Reviews content.
</BOBTab>
</BOBTabs>Variants
Underline (default), Pills, and Enclosed.
Billing details.
Notifications tab.
RAZOR
<div class="demo-stack">
<BOBTabs Variant="BOBTabsVariant.Pills" @bind-ActiveTab="_pills">
<BOBTab Id="account" Label="Account">
Account settings.
</BOBTab>
<BOBTab Id="billing" Label="Billing">
Billing details.
</BOBTab>
<BOBTab Id="team" Label="Team">
Team members.
</BOBTab>
</BOBTabs>
<BOBTabs Variant="BOBTabsVariant.Enclosed" @bind-ActiveTab="_enclosed">
<BOBTab Id="profile" Label="Profile">
Profile tab.
</BOBTab>
<BOBTab Id="notifications" Label="Notifications">
Notifications tab.
</BOBTab>
<BOBTab Id="security" Label="Security">
Security tab.
</BOBTab>
</BOBTabs>
</div>Full width
Inbox.
RAZOR
<BOBTabs FullWidth="true" @bind-ActiveTab="_full">
<BOBTab Id="inbox" Label="Inbox">
Inbox.
</BOBTab>
<BOBTab Id="sent" Label="Sent">
Sent messages.
</BOBTab>
<BOBTab Id="archive" Label="Archive">
Archive.
</BOBTab>
</BOBTabs>Disabled tab
General settings.
RAZOR
<BOBTabs @bind-ActiveTab="_disabled">
<BOBTab Id="general" Label="General">
General settings.
</BOBTab>
<BOBTab Id="pro" Label="Pro features" Disabled="true">
Unreachable content.
</BOBTab>
<BOBTab Id="about" Label="About">
About page.
</BOBTab>
</BOBTabs>Properties
BOBTabs
5 rows.
| Property | Type | Default | Description |
|---|---|---|---|
ChildContent | RenderFragment? | | Markup that emits the tab definitions (typically <BOBTab> children). |
ActiveTab | string? | | ActiveTab. |
ActiveTabChanged | EventCallback<string?> | | ActiveTabChanged. |
FullWidth | bool | | When , the component spans the full width of its container. |
Size | BOBSize | BOBSize.Medium | Visual size of the tab bar. |
BOBTab
5 rows.
| Property | Type | Default | Description |
|---|---|---|---|
Id | string? | | Stable identifier for the tab. Used to track activation. Required. |
Label | string? | | Visible tab label. Required. |
Icon | RenderFragment? | | Optional icon rendered next to the label. |
ChildContent | RenderFragment? | | Content rendered inside the component. |
Disabled | bool | | When , the component is non-interactive. |