mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-22 07:50:36 +01:00
Co-authored-by: Benjamin Canac <canacb1@gmail.com> Co-authored-by: Lnunu <62177121+Lnunu@users.noreply.github.com>
926 B
926 B
description, links
| description | links | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Display a non-modal dialog that floats around a trigger element. |
|
Usage
:component-example{component="popover-example"}
Mode
Use the mode prop to switch between click and hover modes.
:component-example{component="popover-example-mode"}
Manual
Use the open prop to manually control showing the panel.
:component-example{component="popover-example-open"}
Slots
panel
Use the #panel slot to fill the content of the panel. You will have access to the open property and the close method in the slot scope.
:component-example{component="popover-example-slot"}
Props
:component-props
Preset
:component-preset