as-toast
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

AS Toast 🍞 (for Svelte)

Simple and customizable toast notifications for Svelte

Intended as a replacement for alert(), though in a non-blocking fashion.

Image to a warning and a info toast notification.

Links

Quick Start

npm i -D as-toast
<!-- App.svelte -->
<script>
  import { Toasts, addToast } from "as-toast";
</script>

<Toasts />

<button on:click={() => {addToast("Hello World")}}>
  add toast
</button>

--> Open quick start in Svelte REPL

Theme Ideas 🎨

Toast Package that shows of the CSS customization in various themes

Package Sidebar

Install

npm i as-toast

Weekly Downloads

21

Version

1.1.0

License

MIT

Unpacked Size

9.37 kB

Total Files

12

Last publish

Collaborators

  • sarcevic