Overview
Core overlays in mates are intentionally small: portal mounts a reactive template outside the component tree, and popup anchors a floating panel to an element.
Styled modals (Dialog, Confirm, …) and hover tips (tooltip / tip) ship in mates-ui — they build on portal / popup.
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 | Core — toasts, FABs, custom overlays. |
popup
| Anchored panel | Core — menus, autocomplete, pickers. |
Dialog / Confirm
| Modal UI |
mates-ui — built on portal.
|
tooltip / tip
| Hover tips | mates-ui element directives. |
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.