Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

Portal

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

Source@yamada-ui/portal

Props

PortalProps

appendToParentPortal

Description

If true, the portal will check if it is within a parent portal and append itself to the parent's portal node. This provides nesting for portals. If false, the portal will always append to document.body regardless of nesting. It is used to opt out of portal nesting.

Type

boolean

Default

true

containerRef

Description

The ref to the component where the portal will be attached to.

Type

RefObject<HTMLElement | null>

disabled

Description

If true, the forwarding will be disabled.

Type

boolean

isDisabled

Deprecated

Description

If true, the forwarding will be disabled.

Deprecated

Use disabled instead.

Type

boolean

Edit this page on GitHub

PreviousEmptyStateNextFocusLock