Skip to content

Portal

React portal component wrapper
import { Portal } from '@ensdomains/thorin'
<Portal className="modal">
<Typography>This will appear as a new div in the root.</Typography>
</Portal>

Props
#

name
type
default
description
className
string
-
The classname attribute of the container element
el
string
div
The element tag of the container element
renderCallback
() => void
-
A callback fired on the render of children
Edit on GitHub