toastjs-tiny
v1.1.3
Published
[![npm version](https://badge.fury.io/js/toastjs-tiny.svg)](https://badge.fury.io/js/toastjs-tiny) [![npm](https://img.shields.io/npm/dt/toastjs-tiny.svg?logo=npm)](https://www.npmjs.com/package/toastjs-tiny) [![npm](https://img.shields.io/bundlephobia/mi
Downloads
9
Maintainers
Readme
A tiny Toast
Installation
To install the latest stable version:
npm install --save toastjs-tiny
or
yarn add toastjs-tiny
Basic usage:
@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',
});