mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
21 lines
441 B
Vue
21 lines
441 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',
|
|
close: {
|
|
color: 'primary',
|
|
variant: 'outline',
|
|
class: 'rounded-full'
|
|
}
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<UButton label="Show toast" color="neutral" variant="outline" @click="showToast" />
|
|
</template>
|