blazor-devexpress-dot-blazor-dot-dxtoastprovider.md
Specifies the width of the toast notification container.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue("300px")]
[Parameter]
public string Width { get; set; }
| Type | Default | Description |
|---|---|---|
| String | "300px" |
The width in CSS units.
|
Use the Width property to specify the width of a container that displays toast notifications.
Toast notification height is determined automatically based on toast content. You can limit the maximum toast height for every toast (DxToastProvider.MaxHeight) or a specified toast (DxToast.MaxHeight orToastOptions.MaxHeight).
<DxToastProvider
ThemeMode=ToastThemeMode.Pastel
DisplayTime="@TimeSpan.FromSeconds(20)" .
FreezeOnClick="true"
MaxHeight="150px"
Width="400px"/>
See Also