Skip to content

Portal

Open .md

Renders into container (default document.body); nothing on the server or before hydration.

import { Portal } from "@jcsoftdev/ui/primitives";
Prop Type Default Description
children ReactNode
container HTMLElement | null

* marks a required prop.

packages/ui/src/primitives/portal.tsx