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
DensePadding
Gets or sets the padding for a dense alert.
public required string DensePadding { get; set; }
Property Value
DismissButtonColor
Gets or sets the color/hover/focus classes for the dismiss button's icon.
public required string DismissButtonColor { get; set; }
Property Value
DismissButtonSize
Gets or sets the size/shape classes for the dismiss button's clickable hit area.
public required string DismissButtonSize { get; set; }
Property Value
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
Padding
Gets or sets the padding for a standard (non-dense) alert.
public required string Padding { get; set; }
Property Value
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
Transition
Gets or sets the transition classes applied while the alert is visible.
public required string Transition { get; set; }