Basic usage of svelte-french-toast
masterTo use svelte-french-toast, you must first mount the <Toaster /> component at the top level of your Svelte application. Once the toaster is mounted, you can trigger notifications using the toast API (e.g., toast.success(), toast.error(), etc.) from anywhere in your application.
<script>
import toast, {Toaster} from 'svelte-french-toast'
function handleClick() {
toast.success('Hello, world!')
}
</script>
<Toaster />
<button type="button" on:click={handleClick}>Toast</button>