Prism Docs

Toast

Contextual feedback messages for user actions.

Notifications

ToastService API

NameTypeDefaultDescription
success(message: string) => void-Show a success toast notification with green styling.
warning(message: string) => void-Show a warning toast notification with yellow styling.
danger(message: string) => void-Show a danger/error toast notification with red styling.
info(message: string) => void-Show an info toast notification with blue styling.
show(message: string, type: string, duration?: number) => voidduration: 3000Show a custom toast with specified type and optional duration in milliseconds.