TRY NEW VERSION

Toast

Toast.

Interface: IToast.

See the parameters of this component in storybook.

Toast

To change the toast type, use ToastType (success, error, warning, info).

Example
import {IToast, ToastType} from "@onlyoffice/docspace-plugin-sdk";

const toast: IToast = {
    "type": ToastType.error,
    "title": "Wrong file format",
};