fix(Popover): hover mode (#453)

This commit is contained in:
KeJun
2023-07-27 20:35:27 +08:00
committed by GitHub
parent 3af39cacf7
commit 10890e6704
3 changed files with 41 additions and 10 deletions

View File

@@ -28,6 +28,27 @@ links:
```
::
### Mode
Use the `mode` prop to switch between `click` and `hover` modes.
::component-example
#default
:popover-example-mode
#code
```vue
<template>
<UPopover mode="hover">
<UButton color="white" label="Open" trailing-icon="i-heroicons-chevron-down-20-solid" />
<template #panel>
<!-- Content -->
</template>
</UPopover>
</template>
```
::
## Props
:component-props