0.18.0 • Published 2 years ago
@blinq-reach/portal v0.18.0
@reach/portal
Creates and appends a DOM node to the end of document.body
and renders a React tree into it. Useful for rendering a natural React element hierarchy with a different DOM hierarchy to prevent parent styles from clipping or hiding content (for popovers, dropdowns, and modals).
import { Portal } from "@blinq-reach/portal";
function Example() {
return (
<Portal>
<div>Stuff goes here</div>
</Portal>
);
}
0.18.0
2 years ago