Files
ui/docs/app/components/content/examples/toast/ToastProgressExample.vue
2025-07-07 17:10:05 +02:00

17 lines
364 B
Vue

<script setup lang="ts">
const toast = useToast()
function showToast() {
toast.add({
title: 'Uh oh! Something went wrong.',
description: 'There was a problem with your request.',
icon: 'i-lucide-wifi',
progress: false
})
}
</script>
<template>
<UButton label="Show toast" color="neutral" variant="outline" @click="showToast" />
</template>