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
Colors
Gets or sets the color palette applied to toasts.
public required TwBlazorPalette Colors { get; set; }
Property Value
Container
Gets or sets the base classes applied to the toast container.
public required string Container { get; set; }
Property Value
HeaderClasses
Gets or sets the classes for the toast header.
public required string HeaderClasses { get; set; }
Property Value
IconContainer
Gets or sets the classes for the toast icon container.
public required string IconContainer { get; set; }
Property Value
Message
Gets or sets the classes for the toast message.
public required string Message { get; set; }
Property Value
Timestamp
Gets or sets the classes for the toast timestamp.
public required string Timestamp { get; set; }
Property Value
Title
Gets or sets the classes for the toast title.
public required string Title { get; set; }
Property Value
Toast
Gets or sets the base classes applied to each toast.
public required string Toast { get; set; }
Property Value
ToastRounded
Gets or sets the default border radius for toasts.
public Rounded? ToastRounded { get; set; }
Property Value
ToastWidth
Gets or sets a Tailwind CSS width class applied to every individual toast.
public required string ToastWidth { get; set; }