mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
17 lines
287 B
Vue
17 lines
287 B
Vue
<script setup lang="ts">
|
|
const props = defineProps<{
|
|
title: string
|
|
description: string
|
|
}>()
|
|
|
|
const toast = useToast()
|
|
|
|
function showToast() {
|
|
toast.add(props)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<UButton label="Show toast" color="neutral" variant="outline" @click="showToast" />
|
|
</template>
|