1.1.1 • Published 1 year ago

@natoune/svelte-daisyui-toast v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Header Image

Svelte DaisyUI Toast

A simple toaster component for Svelte with DaisyUI.
Inspired by Svelte French Toast.

Installation

npm install @natoune/svelte-daisyui-toast
pnpm install @natoune/svelte-daisyui-toast
yarn add @natoune/svelte-daisyui-toast

Usage

Mount a <Toaster /> at the top level of your app and use the toast API to display toasts.

<script>
    import toast, { Toaster } from '@natoune/svelte-daisyui-toast'

    function handleClick() {
        toast.success('Hello, world!')
    }
</script>

<Toaster />
<button type="button" onclick={handleClick}>Toast</button>

For more usage examples, see the website.

Thanks

Thanks to the original author of Svelte French Toast and its contributors.

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago