This commit is contained in:
1 parent
14fa022dd3
commit
e1effca312
3 files changed
+52
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<script lang="ts">
|
||||
import { dismissToast, toasts } from '@components/toast/Toast.ts';
|
||||
import { fly } from 'svelte/transition';
|
||||
</script>
|
||||
|
||||
<div class="toast toast-end toast-bottom z-[9999]">
|
||||
{#each $toasts as toast (toast.id)}
|
||||
<div class="alert" role="status" aria-live="polite" transition:fly={{ y: 8, duration: 150 }}>
|
||||
<span>{toast.message}</span>
|
||||
<button class="cursor-pointer" onclick={() => dismissToast(toast.id)} aria-label="Schließen">✕</button>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
Reference in new issue
Block a user