structyl

Portal API

View component

The full prop reference for the Portal component. Renders children into document.body or a custom container.

Import

tsx
import { Portal } from '@structyl/styled';

Props

Portal

Portal utility.

PropTypeDefault
container#Element | DocumentFragment | null

Custom target container.

children#React.ReactNode

Portaled content.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library