interface ToastConfiguration {
    displayMs: number;
    toastComponent: ComponentType<{
        toasts: {
            id: string;
            message: string;
        }[];
    }>;
}

Properties

displayMs: number

Time a toast is shown before disappearing

toastComponent: ComponentType<{
    toasts: {
        id: string;
        message: string;
    }[];
}>

Component used to display toasts

Type declaration

  • toasts: {
        id: string;
        message: string;
    }[]

Generated using TypeDoc