A library to show toast notification on web
npm install --save toastjs-tiny
or
yarn add toastjs-tiny
@import 'toastjs-tiny/dist/styles.css';
interface IToast {
text: string;
autoClose?: number;
position?: 'top-center' | 'top-right' | 'bottom-center' | 'bottom-right';
onClose?: () => {};
canClose?: boolean;
showProgress?: boolean;
pauseOnHover?: boolean;
pauseOnFocusLoss?: boolean;
type?: 'success' | 'error';
}
new ToastjsTiny(options: IToast);
new ToastjsTiny({
text: 'Update new password is successfullyUpdate new password is successfullyUpdate new password is successfullyUpdate new password is successfully',
type: 'error',
});