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

@wtto00/toast

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

@wtto00/toast

A simple toast notification library for the browser.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Toast for browser

Install

pnpm add @wtto00/toast

Usage

import { showLoading, showToast, clearAll } from "@wtto00/toast";

const toast = showToast("Hello World!");
// close toast
toast.hide();
// get isHided of toast
console.log(toast.isHided);

const loading = showLoading("Loading...");
// close loading
loading.hide();
// set text of loading
loading.setText("uploading...");
// close all instances of loading
clearAll();

Options

NameTypeDefaultDescription
position'top'|'center'|'bottom''bottom' for toast, 'center' for loadingLocation of toast
theme'light'|'dark'darkTheme of toast
timeoutnumber3s for toast, 0s for loadingThe time of automatic shutdown
allowHtmlbooleanfalseWhether msg uses HTML strings
styleCSSStyleDeclarationundefinedstyle of content

Keywords

toast

FAQs

Package last updated on 13 May 2025

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