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
Colors
Gets or sets the color palette applied to switches.
public required TwBlazorPalette Colors { get; set; }
Property Value
LabelBase
Gets or sets the base classes applied to the switch's label wrapper.
public required string LabelBase { get; set; }
Property Value
LabelDisabled
Gets or sets the classes applied to the label when the switch is disabled.
public required string LabelDisabled { get; set; }
Property Value
LabelInteractiveCursor
Gets or sets the cursor class applied to the label when the switch is interactive.
public required string LabelInteractiveCursor { get; set; }
Property Value
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
Switch
Gets or sets the classes for the toggle (the draggable knob).
public required string Switch { get; set; }
Property Value
Track
Gets or sets the classes for the track (the background beneath the toggle).
public required string Track { get; set; }
Property Value
WrapperSize
Gets or sets the size classes for the wrapper span containing the track and toggle.
public required string WrapperSize { get; set; }