Ariakit
Version
v0.3.7
/
Browse
View new updates
Switch theme
All things Portal
Components
Portal
Attach an element to a DOM node outside the parent component's hierarchy.
Examples
Navigation Menubar
Using Menubar, Menu, and Portal to create an accessible, tabbable navigation menu widget with links and menu buttons that expand on hover and focus.
API Reference
Portal
Renders an element using ReactDOM.createPortal.
PortalContext
Stores the element that will contain the portal. By default, it will be the body of the document.