IToastResult

The result of calling the useToast hook. This gives you methods to invoke notifications for success, errors, etc... All notifications work the same way but have different styles.

Definition

interface IToastResult {
    success: IToastFunction,
    error: IToastFunction,
    warning: IToastFunction,
    info: IToastFunction,
    custom: IToastFunction,
    remove: IRemoveFunction
}

Usage

import { IToastResult } from 'uxp/components';

Last updated