Table of Contents

Class TwAlertTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Color configuration for alert components (TwAlert), including background, text, and border colors for light and dark modes.

[ExcludeFromCodeCoverage]
public class TwAlertTheme
Inheritance
TwAlertTheme
Inherited Members

Constructors

TwAlertTheme()

public TwAlertTheme()

Properties

Colors

Gets or sets the color palette applied to alerts.

public required TwBlazorPalette Colors { get; set; }

Property Value

TwBlazorPalette

DensePadding

Gets or sets the padding for a dense alert.

public required string DensePadding { get; set; }

Property Value

string

DismissButtonColor

Gets or sets the color/hover/focus classes for the dismiss button's icon.

public required string DismissButtonColor { get; set; }

Property Value

string

DismissButtonSize

Gets or sets the size/shape classes for the dismiss button's clickable hit area.

public required string DismissButtonSize { get; set; }

Property Value

string

DismissButtonSpacingWithEndIcon

Gets or sets the margin applied to the dismiss button when an EndIcon is also present (so the two don't collide) - when there's no end icon, the button is pushed to the end via the shared PushEnd spacing token instead.

public required string DismissButtonSpacingWithEndIcon { get; set; }

Property Value

string

Padding

Gets or sets the padding for a standard (non-dense) alert.

public required string Padding { get; set; }

Property Value

string

TextWrapper

Gets or sets the classes for the wrapper around the alert's text content, letting it shrink/wrap correctly next to the optional start/end icons.

public required string TextWrapper { get; set; }

Property Value

string

Transition

Gets or sets the transition classes applied while the alert is visible.

public required string Transition { get; set; }

Property Value

string