mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
22 lines
428 B
Vue
22 lines
428 B
Vue
<script setup lang="ts">
|
|
import type { AvatarProps } from '@nuxt/ui'
|
|
|
|
const props = defineProps<{
|
|
avatar: AvatarProps
|
|
}>()
|
|
|
|
const toast = useToast()
|
|
|
|
function showToast() {
|
|
toast.add({
|
|
title: 'User invited',
|
|
description: 'benjamincanac was invited to the team.',
|
|
avatar: props.avatar
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<UButton label="Invite user" color="neutral" variant="outline" @click="showToast" />
|
|
</template>
|