Component docs
Loading
"use client";
import { Portal } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
container | Element | DocumentFragment | null | document.body | Where to render (default document.body). |
children | ReactNode | — | — |
disabled | boolean | — | Render in place instead of portalling. |
containerdefault document.bodyElement | DocumentFragment | null
Where to render (default document.body).
childrenReactNode
disabledboolean
Render in place instead of portalling.
const element = document.body;
<Portal container={element}>...</Portal>