API Reference
InspectUI works without required props. projectRoot is optional. Optional shortcut, ide, tooltip, and spotlight props seed the overlay settings panel. Update live in the Playground
Props
Props for the <InspectUI /> component.
projectRootstringOptional. Explicit root for resolving relative paths and shortening labels. Basic setup needs no props.
shortcutstringOptional seed for the toggle shortcut. Default `"Alt+X"`. Overridable in the settings panel.
ide"cursor" | "vscode" | "vscode-insiders" | "windsurf" | "zed"Optional seed for open-in-source links. Default `"cursor"`. Overridable in the settings panel.
tooltipPropsPartial<TooltipProps>Optional seed for tooltip appearance. Settings-panel edits override these for the session.
popoverProps{ defaultTab?: "component" | "element" }Initial tree tab when Space opens the popover. Default "component".
devSpotlightPropsPartial<DevSpotlightProps>Optional seed for spotlight appearance. Settings-panel edits override these for the session.
tooltipProps
Tooltip appearance from inspector settings (`setTooltipProps` / toolbar).
backgroundstringLabel background color. Default `"#006efe"`.
textstringLabel text color. Default `"#ffffff"`.
showTitlebooleanShow the component tag (e.g. `<Button/>`) in the label. Default `true`.
showFullUrlbooleanShow the current source path and line. Off shows only the filename and line. Default `true`.
side"top" | "right" | "bottom" | "left"Preferred side of the spotlight for the label. Flips inside when clipped. Default `"top"`.
align"start" | "center" | "end"Alignment along the chosen side. Default `"start"`.
sideOffsetnumberGap between the spotlight edge and the label, in px. Default `6`.
alignOffsetnumberShift along the alignment axis, in px. Default `0`.
paddingXnumberHorizontal padding inside the label, in px. Default `8`.
paddingYnumberVertical padding inside the label, in px. Default `2`.
borderRadiusnumberLabel corner radius, in px. Default `8`.
devSpotlightProps
Spotlight appearance from inspector settings (`setDevSpotlightProps` / toolbar).
backgroundstringSpotlight fill color. Default `"#006efe"`.
borderstringSpotlight stroke color. Default `"#006efe"`.
bgOpacitynumberFill opacity from `0` to `1`. Default `0.1`.
strokeOpacitynumberStroke opacity from `0` to `1`. Default `1`.
strokeWidthnumberStroke width in px. Default `0.5`.
strokeStyle"solid" | "dashed" | "dotted"Stroke style. Default `"solid"`.
animatedbooleanAnimate spotlight and tooltip transitions on hover. Default `true`.