toastjs-tiny
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

A tiny Toast

npm version npm npm All Contributors

Live Demo

Installation

NPM

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',
});

Package Sidebar

Install

npm i toastjs-tiny

Weekly Downloads

3

Version

1.1.3

License

ISC

Unpacked Size

12.8 kB

Total Files

7

Last publish

Collaborators

  • hunghg255