Portal
utilitiesA utility component that renders its children into a different DOM node.
Preview
Portal
Renders children outside the DOM hierarchy into a target container (defaults to document.body).
Installation
npm install @launchapp/design-systemImport
import { Portal } from "@launchapp/design-system";Examples
Portal Usage
<Portal> <div className="fixed inset-0 bg-black/50 pointer-events-none" /></Portal>Props
| Prop | Type | Default | Description |
|---|---|---|---|
container | HTMLElement | null | — | Target DOM container. Defaults to document.body. |
asChild | boolean | false | Render as child element. |