summaryrefslogtreecommitdiff
path: root/frontend/pages/index.vue
blob: d097617ce4ad53f9d54f660c596c4f11fb272402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script setup lang="ts">
const props = defineProps<{
    title: string;
}>();

const toast = useToast();

function showToast() {
    toast.add(props);
}
</script>

<template>
    <UButton
        label="Show toast"
        color="neutral"
        variant="outline"
        @click="showToast"
    />
</template>