Interface

IDecafToast

IDecafToast

Contract for toast notification management in Decaf applications.

Since:
  • 2026-06-19

View Source ui/interfaces/IDecafToast.ts, line 5

Members

Promise.<object>

# create

Convenience wrapper around show for callers that already have a complete DecafToastOptions object.

Creates and presents a toast from a full options object.

View Source ui/interfaces/IDecafToast.ts, line 26

Promise.<DecafToastRole>

# error

Presents a toast with the danger color and waits for dismissal, returning the role that caused it.

Displays an error toast with danger styling.

View Source ui/interfaces/IDecafToast.ts, line 15

Promise.<void>

# show

Presents a toast without a semantic color, suitable for neutral messages. Additional options can override the defaults.

Displays an informational toast with default styling.

View Source ui/interfaces/IDecafToast.ts, line 37

Promise.<void>

# success

Presents a toast with the success color for positive feedback messages.

Displays a success toast with success styling.

View Source ui/interfaces/IDecafToast.ts, line 49

Promise.<DecafToastRole>

# warn

Presents a toast with the warning color and waits for dismissal, returning the role that caused it.

Displays a warning toast with warning styling.

View Source ui/interfaces/IDecafToast.ts, line 59