npm.io
1.1.0 • Published 4 years ago

as-toast

Licence
MIT
Version
1.1.0
Deps
0
Size
9 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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.

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

Keywords