Blazorise Tab API
Explore the Blazorise Tab API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Tab documentation.
API
Parameters
Tabs
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this Tabs. |
RenderFragment | null |
Content |
Container for tab panes. |
RenderFragment | null |
FullWidth |
Makes the tab items to extend the full available width. |
bool | false |
Items |
Container for tab items. |
RenderFragment | null |
Justified |
Makes the tab items to extend the full available width, but every item will be the same width. |
bool | false |
Pills |
Makes the tab items to appear as pills. |
bool | false |
RenderMode |
Specifies how the tabs content will be rendered. Possible values: |
TabsRenderMode | TabsRenderMode.Default |
SelectedTab |
Specifies the currently selected tab name. |
string | |
TabPosition |
Position of tab items. Possible values: |
TabPosition | TabPosition.Top |
VerticalItemsColumnSize |
Controls the size of the items bar when in vertical mode. If left undefined it will default to the |
IFluentColumn | null |
Tab
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this Tab. |
RenderFragment | null |
Disabled |
Flag to indicate that the tab is not responsive for user interaction. |
bool | false |
Name |
Specifies the tab name. Must match the corresponding panel name. |
string |
TabsContent
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this TabsContent. |
RenderFragment | null |
RenderMode |
Specifies how the tabs content will be rendered. Possible values: |
TabsRenderMode | TabsRenderMode.Default |
SelectedPanel |
Specifies the currently selected panel name. |
string |
TabPanel
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this TabPanel. |
RenderFragment | null |
Name |
Specifies the panel name. Must match the corresponding tab name. |
string |
Events
Tabs
| Event | Description | Type |
|---|---|---|
SelectedTabChanged |
Occurs after the selected tab has changed. |
EventCallback<string> |
Tab
| Event | Description | Type |
|---|---|---|
Clicked |
Notifies when the item is clicked. |
EventCallback<MouseEventArgs> |
TabsContent
| Event | Description | Type |
|---|---|---|
SelectedPanelChanged |
Occurs after the selected panel has changed. |
EventCallback<string> |
Methods
Tabs
| Method | Description | Return | Parameters |
|---|---|---|---|
SelectTab |
Sets the active tab by the name. | Task | string tabName |
TabsContent
| Method | Description | Return | Parameters |
|---|---|---|---|
SelectPanel |
Sets the active panel by the name. | Task | string name |