Edit in GitHubLog an issue

Portal

Typedefs

props

Props for Portal

A component that renders content into a DOM node that exists outside of the DOM hierarchy of the parent component.

Returns: React.ReactPortal — The React portal.

See: https://reactjs.org/docs/portals.html
Parameters

NameTypeDescription
children
ReactNodeLike
React child elements
container
Object
The DOM node to render the children in

Props for Portal

Properties

NameTypeDescription
children
ReactNodeLike
any elements that will be child elements inside the modal.
container
Object
the container element (a DOM element) where the children will be rendered.

Source Code: pwa-studio/packages/venia-ui/lib/components/Portal/portal.js

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.