diff options
Diffstat (limited to 'frontend/pages/index.vue')
-rw-r--r-- | frontend/pages/index.vue | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue new file mode 100644 index 0000000..d097617 --- /dev/null +++ b/frontend/pages/index.vue @@ -0,0 +1,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> |