MCPcopy Create free account
hub / github.com/adobe/react-spectrum / CursorOverlay

Function CursorOverlay

packages/@adobe/react-spectrum/src/table/Resizer.tsx:118–122  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

116});
117
118function CursorOverlay(props) {
119 let {show, children} = props;
120 let {getContainer} = useUNSAFE_PortalContext();
121 return show ? ReactDOM.createPortal(children, getContainer?.() ?? document.body) : null;
122}

Callers

nothing calls this directly

Calls 1

useUNSAFE_PortalContextFunction · 0.90

Tested by

no test coverage detected