Overview
portal mounts a reactive template outside the component tree. popup anchors a floating panel to an element.
Both clean up when the host disconnects. Call them from the template (inner) function so they stay reactive.
Pick an overlay
|
API
|
Role
|
Package
|
|---|---|---|
portal
| Any host node | Fixed UI, badges, and custom overlays. |
popup
| Anchored panel | Menus, autocomplete, and pickers. |
portal() to document.body
Fixed badge renders outside the component subtree via portal — still reactive and removed when hidden.
popup() teaser
Controlled popup on a button. Deep options live on the popup leaf.