@scrumble-nl/react-quick-toaster
Version:
A quick and easy wrapper around react-bootstrap toasters, you can toast from anywhere in your application with a few simple steps.
11 lines (10 loc) • 366 B
TypeScript
export { IToast } from './toast-provider';
import { IdlessToast } from './toast-provider';
export { ToastProvider } from './toast-provider';
export { withToaster, useToaster } from './toast-consumer';
export declare type ToasterProps = {
toaster: {
add(toast: IdlessToast): void;
};
};
export declare type ToasterHook = (toast: IdlessToast) => void;