Class TwDialogTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for dialog components shown via ITwDialogService. Override any property to customize dialog container styles globally.
[ExcludeFromCodeCoverage]
public class TwDialogTheme
- Inheritance
-
TwDialogTheme
- Inherited Members
Remarks
The styling categories exposed here (backdrop, surface, header, width breakpoints) mirror the container customization points found in MudBlazor's MudDialogProvider/MudDialogContainer (MIT licensed). The dialog surface's background/rounded-corner/shadow defaults live on TwOverlayTheme instead (shared with every popover panel) - see DialogBackground, DialogRounded, DialogShadow.
Constructors
TwDialogTheme()
public TwDialogTheme()
Properties
Backdrop
Gets or sets the classes for the fixed overlay that darkens the page and positions the dialog.
public required string Backdrop { get; set; }
Property Value
CloseButton
Gets or sets the classes for the close button in the dialog header.
public required string CloseButton { get; set; }
Property Value
Content
Gets or sets the classes for the scrollable dialog body.
public required string Content { get; set; }
Property Value
FullScreen
Gets or sets the classes applied when a dialog is stretched to fill the entire screen.
public required string FullScreen { get; set; }
Property Value
FullWidth
Gets or sets the classes applied when a dialog is stretched to fill its MaxWidth.
public required string FullWidth { get; set; }
Property Value
Header
Gets or sets the classes for the dialog header row containing the title and close button.
public required string Header { get; set; }
Property Value
LargeWidth
Gets or sets the max-width class for Large dialogs.
public required string LargeWidth { get; set; }
Property Value
MediumWidth
Gets or sets the max-width class for Medium dialogs.
public required string MediumWidth { get; set; }
Property Value
SmallWidth
Gets or sets the max-width class for Small dialogs.
public required string SmallWidth { get; set; }
Property Value
Surface
Gets or sets the base classes for the visible dialog surface (the card containing the dialog content) - layout and sizing only; background comes from DialogBackground.
public required string Surface { get; set; }
Property Value
Title
Gets or sets the classes for the dialog title text.
public required string Title { get; set; }