reactjs-toaster
Version:
The React JS Toaster (reactjs-toaster) is lightweight JavaScript/TypeScript based Toast message library for showing Error , Success , Warning and Info message in UI End.
13 lines (12 loc) • 492 B
TypeScript
import { ToastMessage, ToastsProps, classNameProps, styleProps } from './types/toastTypes';
import * as React from 'react';
interface ToastContainerProps {
toasts: ToastsProps[];
removeToast: (id: string) => void;
toastModal: boolean;
styles?: styleProps;
className?: classNameProps;
toaster?: ToastMessage[];
}
export declare function ToastContainer({ toasts, toaster, removeToast, toastModal, styles, className }: ToastContainerProps): React.JSX.Element;
export {};