Files
Website/resources/js/components/SMToastList.vue
2023-03-01 20:13:40 +10:00

30 lines
629 B
Vue

<template>
<div class="sm-toast-container">
<SMToast
v-for="toast of toastStore.toasts"
:id="toast.id"
:key="toast.id"
:type="toast.type"
:title="toast.title"
:content="toast.content" />
</div>
</template>
<script setup lang="ts">
import { useToastStore } from "../store/ToastStore";
import SMToast from "./SMToast.vue";
const toastStore = useToastStore();
</script>
<style lang="scss">
.sm-toast-container {
position: fixed;
top: 3.5rem;
right: 0.75rem;
z-index: 3000;
padding: 10px;
overflow: hidden;
}
</style>