Skip to content

ToastApi

ToastApi = object

Defined in: packages/ui/src/types.ts:1025

Imperative API returned by useToast() for showing notifications.

Provides a show() method for full control and convenience methods for each ToastType. Also used internally by useActionToast() to auto-display notifications when @cfast/actions operations complete.

error: (message, description?) => void

Defined in: packages/ui/src/types.ts:1031

Show an error toast.

string

string

void


info: (message, description?) => void

Defined in: packages/ui/src/types.ts:1033

Show an informational toast.

string

string

void


show: (options) => void

Defined in: packages/ui/src/types.ts:1027

Show a toast with full options control.

ToastOptions

void


success: (message, description?) => void

Defined in: packages/ui/src/types.ts:1029

Show a success toast.

string

string

void


warning: (message, description?) => void

Defined in: packages/ui/src/types.ts:1035

Show a warning toast.

string

string

void