innerRef | React.Ref<HTMLElement> React.MutableRefObject<HTMLElement> | (optional) The ref of the element that will be used. |
id | string | (optional) The id attribute for the portal root element. |
insideSelector | string | (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. |
beforeSelector | string | (optional) CSS selector for a target element; the portal root will be inserted directly before the first matched element. |
children | ReactNode | (required) The content that will be placed in a React Portal. |