Skip to content

DevToolsHighlight

DevToolsHighlight(__namedParameters): ReactElement<unknown, string | JSXElementConstructor<any>> | null

Defined in: react/components/devtools/devtools.tsx:73

A block highlight over an inspected widget’s screen rect — it tints the widget’s cells (keeping their glyphs), not a character border. Pass the region from DevToolsProps.onInspect and mount it under a full-screen root (e.g. the app’s Dock); it’s a pointer-transparent, full-screen overlay that paints at absolute screen coordinates, so clicks fall through and it never lands in the wrong place.

DevToolsRegion | null

ReactElement<unknown, string | JSXElementConstructor<any>> | null