playground(popover): update

This commit is contained in:
Benjamin Canac
2024-03-13 14:43:07 +01:00
parent 7d2d3b9c0f
commit ebbd931db1

View File

@@ -1,14 +1,24 @@
<template> <template>
<UPopover v-model:open="open" arrow mode="hover"> <div class="flex gap-2">
<UButton label="Hover me" color="white" /> <UPopover v-model:open="open" arrow>
<UButton label="Click me" color="white" />
<template #content> <template #content>
<div class="flex gap-2 p-4"> <div class="flex justify-center gap-2 p-4 w-48">
<UButton label="Close" color="gray" @click="open = false" /> <UButton label="Close" color="gray" @click="open = false" />
<UButton label="Send" color="black" trailing-icon="i-heroicons-paper-airplane" :loading="loading" @click="send" /> <UButton label="Send" color="black" trailing-icon="i-heroicons-paper-airplane" :loading="loading" @click="send" />
</div> </div>
</template> </template>
</UPopover> </UPopover>
<UPopover arrow mode="hover">
<UButton label="Hover me" color="white" />
<template #content>
<div class="w-48 h-16" />
</template>
</UPopover>
</div>
</template> </template>
<script setup> <script setup>