Skip to content

Properties

PropertyTypeDescription
innerRefReact.Ref<HTMLElement>
React.MutableRefObject<HTMLElement>
(optional) The ref of the element that will be used.
idstring(optional) The id attribute for the portal root element.
insideSelectorstring(optional) CSS selector for a container to place the portal root inside. The portal element is inserted as the first child of the matched element.
beforeSelectorstring(optional) CSS selector for a target element; the portal root will be inserted directly before the first matched element.
childrenReactNode(required) The content that will be placed in a React Portal.