Displays rich content in a portal, triggered by a button.
import { Button } from "@ngrok/mantle/button";
import { Popover } from "@ngrok/mantle/popover";
<Popover.Root>
<Popover.Trigger asChild>
<Button type="button" appearance="filled">
Open popover
</Button>
</Popover.Trigger>
<Popover.Content preferredWidth="max-w-96">
<p>Reprehenderit veniam excepteur incididunt et ut eu.</p>
</Popover.Content>
</Popover.Root>;The Popover components are built on top of Radix Popover.
The root, stateful component that manages the open/closed state of the popover.
All props from Radix Popover.Root.
The button that toggles the popover.
All props from Radix Popover.Trigger.
The content to render inside the popover. Appears in a portal with styling and animations.
All props from Radix Popover.Content, plus:
An optional element to position the Popover.Content against. If not used, the content will position alongside the Popover.Trigger.
All props from Radix Popover.Anchor.
A button that closes an open popover.
All props from Radix Popover.Close.