Skip to content

ToastApi

ToastApi = object

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

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:907

Show an error toast.

string

string

void


info: (message, description?) => void

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

Show an informational toast.

string

string

void


show: (options) => void

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

Show a toast with full options control.

ToastOptions

void


success: (message, description?) => void

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

Show a success toast.

string

string

void


warning: (message, description?) => void

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

Show a warning toast.

string

string

void