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
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
Disabled
Gets or sets the classes applied to a disabled checkbox input.
public required string Disabled { get; set; }
Property Value
Hover
Gets or sets the hover classes applied to an enabled checkbox input.
public required string Hover { get; set; }
Property Value
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
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
LabelBase
Gets or sets the base classes applied to the checkbox's label wrapper.
public required string LabelBase { get; set; }
Property Value
LabelDisabled
Gets or sets the classes applied to the label when the checkbox is disabled.
public required string LabelDisabled { get; set; }
Property Value
LabelInteractiveCursor
Gets or sets the cursor class applied to the label when the checkbox is interactive.
public required string LabelInteractiveCursor { get; set; }
Property Value
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; }