New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svelte-fire-toast

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-fire-toast

0.0.4
latest
npm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

svelte-fire-toast - Try it out


Smoking hot Notifications for Svelte.
Lightweight, customizable and beautiful by default.


Created by Ankur Singhal 👨‍🍳

Features

  • 🔥 Hot by default
  • 🔩 Easily Customizable
  • Promise API - Automatic loader from a promise
  • 🕊 Lightweight - less than 5kb including styles
  • Accessible

Installation

With yarn
yarn add svelte-fire-toast
With NPM
npm install svelte-fire-toast

Getting Started

Add the Toaster to your app first (entry point +layout.svelte). It will take care of rendering all notifications emitted. Now you can trigger toast() or use:fireAction from anywhere!

<script>
	import { Toaster, toastAction } from 'svelte-fire-toast';
</script>

<Toaster />
<button use:toastAction={'Toasted!'}> Fire </button>

Documentation

Find the full API reference on official documentation.

FAQs

Package last updated on 17 Aug 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