Table of Contents

Class TwToastTheme

Namespace
TwBlazor.Configuration.Components
Assembly
TwBlazor.dll

Theme configuration for toast components (TwToastProvider). Override any property to customize toast styles globally.

[ExcludeFromCodeCoverage]
public class TwToastTheme
Inheritance
TwToastTheme
Inherited Members

Constructors

TwToastTheme()

public TwToastTheme()

Properties

CloseButton

Gets or sets the classes for the close button.

public required string CloseButton { get; set; }

Property Value

string

Colors

Gets or sets the color palette applied to toasts.

public required TwBlazorPalette Colors { get; set; }

Property Value

TwBlazorPalette

Container

Gets or sets the base classes applied to the toast container.

public required string Container { get; set; }

Property Value

string

HeaderClasses

Gets or sets the classes for the toast header.

public required string HeaderClasses { get; set; }

Property Value

string

IconContainer

Gets or sets the classes for the toast icon container.

public required string IconContainer { get; set; }

Property Value

string

Message

Gets or sets the classes for the toast message.

public required string Message { get; set; }

Property Value

string

Timestamp

Gets or sets the classes for the toast timestamp.

public required string Timestamp { get; set; }

Property Value

string

Title

Gets or sets the classes for the toast title.

public required string Title { get; set; }

Property Value

string

Toast

Gets or sets the base classes applied to each toast.

public required string Toast { get; set; }

Property Value

string

ToastRounded

Gets or sets the default border radius for toasts.

public Rounded? ToastRounded { get; set; }

Property Value

Rounded?

ToastWidth

Gets or sets a Tailwind CSS width class applied to every individual toast.

public required string ToastWidth { get; set; }

Property Value

string