mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
1.1 KiB
1.1 KiB
description, links
| description | links | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Display a non-modal dialog that floats around a trigger element. |
|
Usage
::component-example #default :popover-example #code
<template>
<UPopover>
<UButton color="white" label="Open" trailing-icon="i-heroicons-chevron-down-20-solid" />
<template #panel>
<!-- Content -->
</template>
</UPopover>
</template>
::
Mode
Use the mode prop to switch between click and hover modes.
::component-example #default :popover-example-mode #code
<template>
<UPopover mode="hover">
<UButton color="white" label="Open" trailing-icon="i-heroicons-chevron-down-20-solid" />
<template #panel>
<!-- Content -->
</template>
</UPopover>
</template>
::
Slots
panel
Use the #panel slot to fill the content of the panel.
Props
:component-props
Preset
:component-preset