Files
frontend/app/components/AppToast.vue
T
2026-08-21 15:29:01 +02:00

23 lines
765 B
Vue

<template>
<Transition
enter-active-class="transition duration-200 ease-out"
enter-from-class="translate-y-2 opacity-0"
enter-to-class="translate-y-0 opacity-100"
leave-active-class="transition duration-150 ease-in"
leave-from-class="translate-y-0 opacity-100"
leave-to-class="translate-y-2 opacity-0"
>
<div
v-if="message"
class="fixed bottom-6 left-1/2 z-50 flex -translate-x-1/2 items-center gap-2 rounded-lg border border-border bg-surface-raised px-4 py-2.5 text-sm text-text shadow-lg shadow-black/40"
>
<span class="material-symbols-outlined text-accent">info</span>
{{ message }}
</div>
</Transition>
</template>
<script setup lang="ts">
defineProps<{ message: string | null }>()
</script>