Table of Contents

Class TwCheckboxTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for checkbox components (TwCheckbox<T>), including checked-state colors and the structural classes for the input, label, and check icon.

[ExcludeFromCodeCoverage]
public class TwCheckboxTheme
Inheritance
TwCheckboxTheme
Inherited Members

Constructors

TwCheckboxTheme()

public TwCheckboxTheme()

Properties

Base

Gets or sets the base classes applied to the native checkbox input.

public required string Base { get; set; }

Property Value

string

Colors

Gets or sets the color palette applied to checkboxes. Each entry is gated behind Tailwind's native checked: pseudo-class, so it only takes effect when the checkbox's actual DOM checked property is true.

public required TwBlazorPalette Colors { get; set; }

Property Value

TwBlazorPalette

Disabled

Gets or sets the classes applied to a disabled checkbox input.

public required string Disabled { get; set; }

Property Value

string

Hover

Gets or sets the hover classes applied to an enabled checkbox input.

public required string Hover { get; set; }

Property Value

string

IconWrapper

Gets or sets the classes for the checkmark icon wrapper shown when the checkbox is checked.

public required string IconWrapper { get; set; }

Property Value

string

IndeterminateIconWrapper

Gets or sets the classes for the dash icon wrapper shown when a TwCheckbox<bool?>'s bound value is null (indeterminate).

public required string IndeterminateIconWrapper { get; set; }

Property Value

string

LabelBase

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

public required string LabelBase { get; set; }

Property Value

string

LabelDisabled

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

public required string LabelDisabled { get; set; }

Property Value

string

LabelInteractiveCursor

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

public required string LabelInteractiveCursor { get; set; }

Property Value

string

LabelNonInteractiveCursor

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

public required string LabelNonInteractiveCursor { get; set; }

Property Value

string