p-popover component displays additional contextual content in an overlay and should be used when users need
optional details without leaving their current context. It is triggered by a button and renders its own info button by
default, or you can provide a custom trigger via the button slot.Escape, or when keyboard focus leaves
the Popover.open prop together with a slotted
button or another trigger element (the default info button does not toggle in this mode). In this mode you own the
open state: the Popover only emits the dismiss event when the user requests to close it (via Escape, an outside
click or when keyboard focus leaves the Popover), and you decide whether to update open in response.p-popover utilizes the #top-layer which enables it to be shown correctly even when used e.g. within a scroll container.
Set arrow={false} to drop the arrow and the extra offset it adds, which keeps a wide trigger (such as an input search
field) flush with the panel.<!doctype html>
<html lang="en" class="scheme-light-dark">
<head>
<title></title>
</head>
<body class="bg-canvas">
<p-popover>
<p-text>
Some additional content.
</p-text>
</p-popover>
<script>
</script>
</body>
</html>