mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
playground(popover): update
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user