Skip to main content
InspectorComponentProps
Props for the InspectorComponent
NameTypeDescription
afterUpdate?(s:BrowserUI) => voidOptional function to invoke after an update.
autoCommit?booleanWhether or not to auto commit on enter keypress/blur. Defaults to true.
className?stringOptional extra css classes to set on the root element
filter?(b:Base) => booleanOptional filter you can use to instruct the inspector to ignore certain items.
multipleSelections?booleanWhether or not to support multiple selections. Defaults to true.
refresh?(obj:Base) => voidCallback invoked when a new object has started to be edited. You need to provide this if the child content you provide to the Inspector is not a function.
renderEmptyContent?() => anyOptional function that returns JSX to use when nothing is selected
showCloseButton?booleanWhether or not to show a close button. Defaults to false.
surface?SurfaceSurface to attach to. It is not mandatory that you supply this - the component is context aware and can try to resolve a surface from an ancestor SurfaceProvider SurfaceComponent or PaperComponent.