New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

typescript-toastify

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-toastify

TypeScript Toast Notification Library

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

TypeScript-Toastify

Twitter npm NPM npm

🦚 TypeScript Toastify allows you to add toast notifications to your web app easily.

Installation

> npm i typescript-toastify

Features

  • Easy to set up
  • Super easy to customize
  • Has onClose function, which runs function you define when toast closes
  • Can remove a toast programmatically
  • Update toast in between
  • Pause toast when the window loses focus 👁
  • pause toast on toast hover
  • Fancy progress bar to display the remaining time
  • Dark mode 🌑
  • set custom position
  • set toast closing time
  • can use diffrent type of toast like info, error, warning
  • And much more !

The gist

import Toast from 'typescript-toastify';

const toast = new Toast({
  position: 'top-right',
  toastMsg: 'Hello, world!',
  autoCloseTime: 3000,
  onClose: () => {
    alert('TS Toast 🍞');
  },
  canClose: true,
  showProgress: true,
  pauseOnHover: true,
  pauseOnFocusLoss: true,
  type: 'info',
  theme: 'dark',
});

Demo

A demo is worth a thousand words

Documentation

Check the documentation to get you started!

Reach me at 🠮

@aayushmaan54      @aayushmaan54

License

Licensed under MIT

Keywords

typescript

FAQs

Package last updated on 16 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts