mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: Sébastien Chopin <seb@nuxt.com>
16 lines
321 B
Vue
16 lines
321 B
Vue
<script setup>
|
|
const toast = useToast()
|
|
|
|
const actions = ref([{
|
|
label: 'Action 1',
|
|
click: () => alert('Action 1 clicked!')
|
|
}, {
|
|
label: 'Action 2',
|
|
click: () => alert('Action 2 clicked!')
|
|
}])
|
|
</script>
|
|
|
|
<template>
|
|
<UButton label="Show toast" @click="toast.add({ title: 'With actions', actions })" />
|
|
</template>
|