docs(modal): update

This commit is contained in:
Benjamin Canac
2024-08-23 13:26:20 +02:00
parent 4b641f7c23
commit 60f2b0d8fb
15 changed files with 540 additions and 26 deletions

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
import { LazyExampleModalComponent } from '#components'
const count = ref(0)
const modal = useModal()
function openModal() {
count.value++
modal.open(LazyExampleModalComponent, {
description: 'And you can even provide a description !',
count: count.value
})
}
</script>
<template>
<UButton label="Open" color="gray" variant="subtle" @click="openModal" />
</template>