Matchbox
Updates
Design
Components
Components
Portal
Portal
Usage
Examples
Basic
<Portal> <div style={{ position: "fixed", top: 10, left: 30 }}>Portal Content</div> </Portal>;
<
Portal
>
<
div
style
=
{
{
position
:
"fixed"
,
top
:
10
,
left
:
30
}
}
>
Portal Content
</
div
>
</
Portal
>
;
Copy
Portal API
containerId
string
ID of the target portal container. Appends a new portal to document body if not provided
children
node
Content rendered inside the portal