mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
Co-authored-by: Jakub <jakub.michalek@freelo.io> Co-authored-by: Benjamin Canac <canacb1@gmail.com>
20 lines
440 B
Vue
20 lines
440 B
Vue
<script lang="ts" setup>
|
|
const open = ref(false)
|
|
</script>
|
|
|
|
<template>
|
|
<UPopover
|
|
v-model:open="open"
|
|
:dismissible="false"
|
|
:ui="{ content: 'w-(--reka-popper-anchor-width) p-4' }"
|
|
>
|
|
<template #anchor>
|
|
<UInput placeholder="Focus to open" @focus="open = true" @blur="open = false" />
|
|
</template>
|
|
|
|
<template #content>
|
|
<Placeholder class="w-full aspect-square" />
|
|
</template>
|
|
</UPopover>
|
|
</template>
|