Table of Contents

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

string

CloseButton

Gets or sets the classes for the close button in the dialog header.

public required string CloseButton { get; set; }

Property Value

string

Content

Gets or sets the classes for the scrollable dialog body.

public required string Content { get; set; }

Property Value

string

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

string

FullWidth

Gets or sets the classes applied when a dialog is stretched to fill its MaxWidth.

public required string FullWidth { get; set; }

Property Value

string

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

string

LargeWidth

Gets or sets the max-width class for Large dialogs.

public required string LargeWidth { get; set; }

Property Value

string

MediumWidth

Gets or sets the max-width class for Medium dialogs.

public required string MediumWidth { get; set; }

Property Value

string

SmallWidth

Gets or sets the max-width class for Small dialogs.

public required string SmallWidth { get; set; }

Property Value

string

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

string

Title

Gets or sets the classes for the dialog title text.

public required string Title { get; set; }

Property Value

string