0.0.4 โ€ข Published 10 months ago

svelte-fire-toast v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

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.

0.0.3

10 months ago

0.0.2

10 months ago

0.0.4

10 months ago

0.0.1

1 year ago