Need help with svelte-notifications?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

beyonk-adventures
141 Stars 16 Forks MIT License 53 Commits 7 Opened issues

Description

Svelte toast notifications component that can be used in any JS application

Services available

!
?

Need anything else?

Contributors list

Beyonk

Svelte Notifications

js-standard-style CircleCI Svelte v2 Svelte v3

Svelte Notifications component

  • v3 compatible
  • uses stores for completely hassle free operation

Demo

A Demo of this component is available.

Usage

npm i -D @beyonk/svelte-notifications

Show message

Notification types

You can call multiple types of notification:

notifier.show('danger', message, displayTimeMs)
notifier.danger(message, displayTimeMs),
notifier.warning(message, displayTimeMs),
notifier.info(message, displayTimeMs),
notifier.success(message, displayTimeMs)

Notification themes

You can customise the themes:

Show message

Custom types

Show message

Timeouts

You can set a default timeout:

Show message

Custom timeout:

You can set a timeout per message

Show message

Credits

  • Original code by Antony Jones
  • Animation and performance improvements by jg.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.