Skip to main content
PaperComponentProps
Props for the PaperComponent.
NameTypeDescription
childProps?anyAny props to pass to children.
className?stringOptional class name to append to the root element's class list.
data?anyOptional initial data
dataType?stringID of the format that data or the data retrieved from url is expected to be in. Defaults to JSON_DATATYPE.
model?BrowserUIReactModelOptional instance to render. You mostly wont need to do this; the SurfaceComponent or PaperComponent will create an instance.
modelOptions?ModelOptionsOptions for the underlying instance.
paperId?stringOptional ID to assign to the Paper that is created.
renderOptions?ReactPaperRenderOptionsRender options such as layout, drag options etc
style?Record<string,string>Optional style object to apply to the container element.
url?stringOptional URL to load initial data from.
viewOptions?ReactPaperViewOptionsMappings of vertex types to components/jsx and edge types.