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
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
DisabledTab
Gets or sets the classes applied to a disabled tab, including its text color.
public required string DisabledTab { get; set; }
Property Value
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
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
IsolatedInactiveTab
Gets or sets the classes applied to an inactive, enabled tab in an isolated tablist.
public required string IsolatedInactiveTab { get; set; }
Property Value
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
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
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
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
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
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
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
ScrollButtonEnd
Gets or sets the classes for the scroll button at the end of the tablist.
public string ScrollButtonEnd { get; set; }
Property Value
ScrollButtonStart
Gets or sets the classes for the scroll button at the start of the tablist.
public string ScrollButtonStart { get; set; }
Property Value
ScrollContainer
Gets or sets the classes for the wrapper around a scrollable tablist and its scroll buttons.
public string ScrollContainer { get; set; }
Property Value
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
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
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
TabBase
Gets or sets the base classes applied to every tab, regardless of state.
public required string TabBase { get; set; }
Property Value
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
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
TabPadding
Gets or sets the padding classes for a tab in container mode when Dense mode is disabled.
public required string TabPadding { get; set; }