Skip to content
Sancho UI
Toggle dark mode
Getting started
Built with ☕ by
Ben McMahen

Portal

A portal renders a react component outside of the standard application tree. This is used by the Overlay, Popover, and Tooltip components.

Basic usage

Supply the element you want rendered as the child of the portal.

<Portal><div>Yeah, that's simple</div></Portal>

API

Portal
children*ReactNode
The element to be rendered in the portal