Table of Contents

Class TwTabTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for the tabs components (TwTabContainer, TwTab). Override any property to customize tab styles globally.

[ExcludeFromCodeCoverage]
public class TwTabTheme
Inheritance
TwTabTheme
Inherited Members

Constructors

TwTabTheme()

public TwTabTheme()

Properties

ActiveIndicator

Gets or sets the classes applied to the currently active, enabled tab's underline indicator when Container is set. The indicator is drawn in the tab's own text color.

public required string ActiveIndicator { get; set; }

Property Value

string

Background

Gets or sets the background classes applied to both the tablist and panel containers in container mode, unless TransparentContainer is set.

public required string Background { get; set; }

Property Value

string

DisabledTab

Gets or sets the classes applied to a disabled tab, including its text color.

public required string DisabledTab { get; set; }

Property Value

string

InactiveIndicator

Gets or sets the classes applied to an inactive, enabled tab when Container is set: its neutral text color, its hover text color and fill, and the collapsed underline indicator that expands when the tab becomes active.

public required string InactiveIndicator { get; set; }

Property Value

string

IsolatedActiveTab

Gets or sets the classes applied to the active, enabled tab in an isolated tablist. The active tab is drawn as a raised surface so its selected state does not rely on color alone.

public required string IsolatedActiveTab { get; set; }

Property Value

string

IsolatedInactiveTab

Gets or sets the classes applied to an inactive, enabled tab in an isolated tablist.

public required string IsolatedInactiveTab { get; set; }

Property Value

string

IsolatedPanelContainer

Gets or sets the classes for the tab panel in the default (isolated) layout. The panel has no border or background of its own, so content such as cards sits directly on the page.

public required string IsolatedPanelContainer { get; set; }

Property Value

string

IsolatedTab

Gets or sets the classes applied to every tab in an isolated tablist, regardless of state.

public required string IsolatedTab { get; set; }

Property Value

string

IsolatedTabDensePadding

Gets or sets the padding classes for a tab in an isolated tablist when Dense mode is enabled.

public required string IsolatedTabDensePadding { get; set; }

Property Value

string

IsolatedTabListContainer

Gets or sets the classes for the tablist in the default (isolated) layout, used unless Container is set. The tablist renders as a standalone, floating bar that is visually separate from the panel.

public required string IsolatedTabListContainer { get; set; }

Property Value

string

IsolatedTabPadding

Gets or sets the padding classes for a tab in an isolated tablist when Dense mode is disabled.

public required string IsolatedTabPadding { get; set; }

Property Value

string

PanelContainer

Gets or sets the classes for the tab panel container that wraps the active tab's content when Container is set, including the focus ring shown when the panel itself receives keyboard focus.

public required string PanelContainer { get; set; }

Property Value

string

ScrollButton

Gets or sets the classes for both scroll buttons. A button is shown only while there are tabs out of view on its side.

public string ScrollButton { get; set; }

Property Value

string

ScrollButtonEnd

Gets or sets the classes for the scroll button at the end of the tablist.

public string ScrollButtonEnd { get; set; }

Property Value

string

ScrollButtonStart

Gets or sets the classes for the scroll button at the start of the tablist.

public string ScrollButtonStart { get; set; }

Property Value

string

ScrollContainer

Gets or sets the classes for the wrapper around a scrollable tablist and its scroll buttons.

public string ScrollContainer { get; set; }

Property Value

string

ScrollableTabList

Gets or sets the classes added to the tablist when Scrollable is set: the tabs stay on one line and scroll sideways instead of wrapping.

public string ScrollableTabList { get; set; }

Property Value

string

TabBar

Gets or sets the classes for the bar that holds the tablist and TabBarContent. Only rendered when the container is Scrollable or has tab bar content.

public string TabBar { get; set; }

Property Value

string

TabBarContent

Gets or sets the classes for the wrapper around TabBarContent, shown at the end of the tab bar.

public string TabBarContent { get; set; }

Property Value

string

TabBase

Gets or sets the base classes applied to every tab, regardless of state.

public required string TabBase { get; set; }

Property Value

string

Remarks

Tabs render as plain buttons, so these classes (with the padding and state classes below) are the tab's whole appearance: nothing is inherited from TwButtonTheme.

TabDensePadding

Gets or sets the padding classes for a tab in container mode when Dense mode is enabled.

public required string TabDensePadding { get; set; }

Property Value

string

TabListContainer

Gets or sets the classes for the tablist container that wraps the tab buttons when Container is set.

public required string TabListContainer { get; set; }

Property Value

string

TabPadding

Gets or sets the padding classes for a tab in container mode when Dense mode is disabled.

public required string TabPadding { get; set; }

Property Value

string