Contract for toast notification management in Decaf applications.
- Since:
- 2026-06-19
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.
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.
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.
Promise.<void>
# success
Presents a toast with the success color for positive feedback messages.
Displays a success toast with success styling.
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.