Portal

Portal is a component that renders elements outside of the current DOM hierarchy.

元の世界

ナツキ・スバル

Usage

import { Portal } from "@yamada-ui/react"
<Portal />

Change the destination

To change the destination, set the ref of the destination to containerRef. By default, it transfers to the end of document.body.

元の世界

ナツキ・スバル

エミリアたん

Disable portaling

To disable forwarding, set disabled to true.

元の世界

ナツキ・スバル

Props