SavingToast

Description

A toast notification for save operations

The SavingToast component helps viewing the state of a saving operation (Saving, Saved, Error) with appropriate icons and colors.

API reference

class

SavingToast

public class SavingToast

A toast variant that shows a "saving…" indicator while a long operation is running, swapping to success / error feedback when it completes.

Namespace
Tesserae

Constructors

NameDescription
SavingToastInitializes a new instance of this class.
Constructor
SavingToast
public SavingToast(string initialMessage)

Initializes a new instance of this class.

Properties

NameDescription
MinimumDisplayTimeGets or sets the minimum display time.
Property
SavingToast.MinimumDisplayTime
public TimeSpan MinimumDisplayTime { get; set; }

Gets or sets the minimum display time.

Methods

NameDescription
SavingConfigures the component to saving.
SavedConfigures the component to saved.
ErrorGets or sets the validation error message displayed beneath the component.
Method
SavingToast.Saving
public SavingToast Saving(string message = null, string title = "Saving...")

Configures the component to saving.

Method
SavingToast.Saved
public SavingToast Saved(string message = null, string title = "Saved")

Configures the component to saved.

Method
SavingToast.Error
public SavingToast Error(string message = null, string title = "Error", bool untilDismissed = false)

Gets or sets the validation error message displayed beneath the component.

class

SavingToastHelper

public static class SavingToastHelper

Extension helpers for awaiting a Task while showing a SavingToast.

Namespace
Tesserae

Methods

NameDescription
WithSavingToastAwaits the given task while displaying a SavingToast: the toast shows a "saving" indicator while the task is in flight and swaps to a "saved" or "error" message on completion.
Method
SavingToastHelper.WithSavingToast
Overload
WithSavingToast<T>(Task<T>, string, string, string)Awaits the given task while displaying a SavingToast: the toast shows a "saving" indicator while the task is in flight and swaps to a "saved" or "error" message on completion.
WithSavingToast(Task, string, string, string)Returns the component configured with the given saving toast.
WithSavingToast<T>(Task<T>, string, string, string)
public static async Task<T> WithSavingToast<T>(this Task<T> task, string savingMessage = "Saving...", string savedMessage = "Saved", string errorMessage = "Error")

Awaits the given task while displaying a SavingToast: the toast shows a "saving" indicator while the task is in flight and swaps to a "saved" or "error" message on completion.

Parameters

task Task<T>
savingMessage string
savedMessage string
errorMessage string
WithSavingToast(Task, string, string, string)
public static async Task WithSavingToast(this Task task, string savingMessage = "Saving...", string savedMessage = "Saved", string errorMessage = "Error")

Returns the component configured with the given saving toast.

Parameters

task Task
savingMessage string
savedMessage string
errorMessage string

Samples

Trigger states

Live Demo

See also

© 2026 Curiosity. All rights reserved.