- @if (Instance is not null)
- {
-
-
-
+
+ @if (Icon is not null)
+ {
+
+
+
+ }
+ else if (Type == ToastType.IndeterminateProgress)
+ {
+
+
+
}
else
{
- @ChildContent
+
+
+
+ }
+
+ @if (!string.IsNullOrEmpty(Title))
+ {
+ @Title
+ }
+
+ @if (IsDismissable)
+ {
+ @if (!string.IsNullOrEmpty(DismissAction))
+ {
+
+ @DismissAction
+
+ }
+ else
+ {
+
+ }
+ }
+
+ @if (!string.IsNullOrEmpty(Body) || BodyContent is not null)
+ {
+ @Body@BodyContent
+ }
+
+ @if (!string.IsNullOrEmpty(Subtitle))
+ {
+ @Subtitle
+ }
+
+ @if (!string.IsNullOrEmpty(QuickAction1) || !string.IsNullOrEmpty(QuickAction2))
+ {
+
+ @if (!string.IsNullOrEmpty(QuickAction1))
+ {
+
+ @QuickAction1
+
+ }
+
+ @if (!string.IsNullOrEmpty(QuickAction2))
+ {
+
+ @QuickAction2
+
+ }
+
}
-
+
diff --git a/src/Core/Components/Toast/FluentToast.razor.cs b/src/Core/Components/Toast/FluentToast.razor.cs
index 9212ceef57..e9779976df 100644
--- a/src/Core/Components/Toast/FluentToast.razor.cs
+++ b/src/Core/Components/Toast/FluentToast.razor.cs
@@ -2,107 +2,380 @@
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------
-using System.Diagnostics.CodeAnalysis;
using Microsoft.AspNetCore.Components;
using Microsoft.FluentUI.AspNetCore.Components.Utilities;
namespace Microsoft.FluentUI.AspNetCore.Components;
///