feat(Popover): manual mode & horizontal offset (#781)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Lnunu <62177121+Lnunu@users.noreply.github.com>
This commit is contained in:
Nils Olsson
2023-10-12 03:14:40 -07:00
committed by GitHub
parent 827f2f45d9
commit 92b86186e7
3 changed files with 39 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
<script setup>
const open = ref(false)
</script>
<template>
<div class="flex gap-4 items-center">
<UToggle v-model="open" />
<UPopover :open="open">
<UButton color="white" label="Open" trailing-icon="i-heroicons-chevron-down-20-solid" />
<template #panel>
<div class="p-4">
<Placeholder class="h-20 w-48" />
</div>
</template>
</UPopover>
</div>
</template>