playground(modal/slideover): update

This commit is contained in:
Benjamin Canac
2024-08-23 16:02:28 +02:00
parent 6ac63b5034
commit 6a10b27b98
6 changed files with 40 additions and 42 deletions

View File

@@ -0,0 +1,19 @@
<script setup lang="ts">
const slideover = useSlideover()
defineProps<{
count: number
}>()
</script>
<template>
<USlideover :description="`This slideover was opened programmatically ${count} times`">
<template #body>
<Placeholder class="h-full" />
</template>
<template #footer>
<UButton color="gray" label="Close" @click="slideover.close()" />
</template>
</USlideover>
</template>