Table of Contents

Class TwSwitchTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for switch components (TwSwitch<T>), including checked-state colors and the structural classes for the input, label, track, and toggle.

[ExcludeFromCodeCoverage]
public class TwSwitchTheme
Inheritance
TwSwitchTheme
Inherited Members

Constructors

TwSwitchTheme()

public TwSwitchTheme()

Properties

Base

Gets or sets the base classes applied to the native (visually hidden) checkbox input.

public required string Base { get; set; }

Property Value

string

Colors

Gets or sets the color palette applied to switches.

public required TwBlazorPalette Colors { get; set; }

Property Value

TwBlazorPalette

LabelBase

Gets or sets the base classes applied to the switch's label wrapper.

public required string LabelBase { get; set; }

Property Value

string

LabelDisabled

Gets or sets the classes applied to the label when the switch is disabled.

public required string LabelDisabled { get; set; }

Property Value

string

LabelInteractiveCursor

Gets or sets the cursor class applied to the label when the switch is interactive.

public required string LabelInteractiveCursor { get; set; }

Property Value

string

LabelNonInteractiveCursor

Gets or sets the cursor class applied to the label when the switch is read-only or disabled.

public required string LabelNonInteractiveCursor { get; set; }

Property Value

string

Switch

Gets or sets the classes for the toggle (the draggable knob).

public required string Switch { get; set; }

Property Value

string

Track

Gets or sets the classes for the track (the background beneath the toggle).

public required string Track { get; set; }

Property Value

string

WrapperSize

Gets or sets the size classes for the wrapper span containing the track and toggle.

public required string WrapperSize { get; set; }

Property Value

string