Import
import { Portal } from '@cerberus/react'Usage
A wrapper around the React Portal API for a better DX.
Loading example...
API
Props
The Portal component accepts the following props:
| Name | Default | Description |
|---|---|---|
container | document.body | The mounted element to place the children contents within. |
disabled | false | Disables the portal from rendering. Perfect for when you need to disabled a child Portal that is rendered within another Portal. |