{#each $toast as toastData (toastData.id)}
toastData.dismissible && toast.remove(toastData.id)} on:keydown={() => toastData.dismissible && toast.remove(toastData.id)} in:fly|global={{ opacity: 0, x: 100 }} out:fade|global animate:flip class={`toast ${toastData.type.toLowerCase()}`} > {#if toastData.dismissible && toastData.showButton} {/if}
{/each}