MudBlazor

MudTabs API

Pages

Properties

Name Type Default Description
ActivePanelIndex
Int32

0

The current active panel index. Also with Bidirectional Binding
AlwaysShowScrollButtons
Boolean

False

If true, always display the scroll buttons even if the tabs are smaller than the required with, buttons will be disabled if there is nothing to scroll.
ApplyEffectsToContainer
Boolean

False

If true, will apply elevation, rounded, outlined effects to the whole tab component instead of just toolbar.
Border
Boolean

False

If true, sets a border between the content and the toolbar depending on the position.
Centered
Boolean

False

If true, centers the tabitems.
ChildContent
RenderFragment

null

Child content of component.
Color
Color

Color.Default

The color of the component. It supports the theme colors.
DisableRipple
Boolean

False

If true, disables ripple effect.
DisableSliderAnimation
Boolean

False

If true, disables slider animation
Elevation
Int32

0

The higher the number, the heavier the drop-shadow, applies around the whole component.
Header
RenderFragment<MudTabs>

null

A render fragment that is added before or after (based on the value of HeaderPosition) the tabs inside the header panel of the tab control
HeaderPosition
TabHeaderPosition

TabHeaderPosition.After

Additional content specified by Header is placed either before the tabs, after or not at all
HideSlider
Boolean

False

Hides the active tab slider.
IconColor
Color

Color.Inherit

The color of the icon. It supports the theme colors.
KeepPanelsAlive
Boolean

False

If true, render all tabs and hide (display:none) every non-active.
MaxHeight
Nullable<Int32>

null

Sets the maxheight the component can have.
NextIcon
String
Icon to use for right pagination.
Outlined
Boolean

False

If true, toolbar will be outlined.
PanelClass
String

null

Custom class/classes for Selected Content Panel
Position
Position

Position.Top

Sets the position of the tabs itself.
PrevIcon
String
Icon to use for left pagination.
Rounded
Boolean

False

If true, sets the border-radius to theme default.
ScrollIconColor
Color

Color.Inherit

The color of the next/prev icons. It supports the theme colors.
SliderColor
Color

Color.Inherit

The color of the tab slider. It supports the theme colors.
TabPanelClass
String

null

Custom class/classes for TabPanel
TabPanelHeader
RenderFragment<MudTabPanel>

null

A render fragment that is added before or after (based on the value of HeaderPosition) inside each tab panel
TabPanelHeaderPosition
TabHeaderPosition

TabHeaderPosition.After

Additional content specified by Header is placed either before the tabs, after or not at all
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

EventCallbacks

Name Type Description
ActivePanelIndexChanged
EventCallback<Int32>
Fired when ActivePanelIndex changes.

Methods

Name Parameters Return Description
ActivatePanel(MudTabPanel panel, bool ignoreDisabledState)
MudTabPanel panel
bool ignoreDisabledState
ActivatePanel(int index, bool ignoreDisabledState)
int index
bool ignoreDisabledState
ActivatePanel(object id, bool ignoreDisabledState)
object id
bool ignoreDisabledState
ValueTask DisposeAsync()
ValueTask
An error has occurred. This application may no longer respond until reloaded. Reload 🗙