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.
11 lines (10 loc) • 346 B
TypeScript
import { ToastType, classNameProps, styleProps } from '../types/toastTypes';
import * as React from 'react';
interface ToastProps {
type: ToastType;
message: string;
className?: classNameProps;
styles?: styleProps;
}
export declare function Toaster({ type, message, className, styles }: ToastProps): React.JSX.Element;
export {};