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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    52
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    52
  • 1.0.0
    0
  • 0.0.2
    0

Package Sidebar

Install

npm i as-toast

Weekly Downloads

52

Version

1.1.0

License

MIT

Unpacked Size

9.37 kB

Total Files

12

Last publish

Collaborators

  • sarcevic