1.0.4 • Published 3 years ago

@benleed/toast v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Toast

  • Put the Toast component in parent component (Like App.svelte)
  • Use postiveToast or negativeToast to show toast with a message
  • 2nd param set to true will leave toast open until user acts

Example

<script>
 import Toast, { positiveToast, negativeToast } from '@benleed/toast'
</script>

<button on:click={() => positiveToast('I am good')}>Show Positive</button>
<button on:click={() => negativeToast('I am not good',true)}>Show Negative with persist</button>

<Toast />
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago