0.18.1 • Published 1 year ago

@reach-ui-fork/portal v0.18.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@reach-ui-fork/portal

Stable release MIT license

Docs | Source

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 "@reach-ui-fork/portal";

function Example() {
	return (
		<Portal>
			<div>Stuff goes here</div>
		</Portal>
	);
}