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 sit alongside them. Reached through Dialog.

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

Background

Gets or sets the background for the modal dialog surface.

public required string Background { 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

Rounded

Gets or sets the default border radius for dialogs.

public Rounded? Rounded { get; set; }

Property Value

Rounded?

Remarks

If not set, falls back to global DefaultRounded. Individual dialogs can override this via Rounded.

Shadow

Gets or sets the default shadow level for dialogs.

public Shadow? Shadow { get; set; }

Property Value

Shadow?

Remarks

If not set, falls back to global DefaultShadow. Individual dialogs can override this via Shadow.

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 Background.

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