Popover
Anchored floating content — native Popover API, repositions on scroll and resize.
Installation
npx @cloudflare/nimbus-docs add popoveryarn dlx @cloudflare/nimbus-docs add popoverpnpm dlx @cloudflare/nimbus-docs add popoverbunx @cloudflare/nimbus-docs add popoverPreview
Anchored content positioned next to the trigger.
<Popover>
<PopoverTrigger>Open</PopoverTrigger>
<PopoverContent placement="bottom-start">
Anchored content positioned next to the trigger.
</PopoverContent>
</Popover>API reference
Every prop the component accepts, sourced from a single declaration.
| Prop | Type |
|---|---|
placement | "bottom-start" | "bottom-end" | "top-start" | "top-end" |