EditorState
Type
Reference
Properties
nodes
Record<NodeId, Node>A map of all the Nodes in the editorevents
Objectselected
Set<NodeId>hovered
Set<NodeId>dragged
Set<NodeId>
options
Objectresolver
Map<String, React.ComponentType>A map of User Components that will be used in the editorenabled?
booleanOptional. If set to false, all editing capabilities will be disabledindicator
Objectsuccess
StringColor to use when the user hovers over a droppable locationerror
StringColor to use when the usre hovers over a non-droppable locationtransition
stringCSS transition to use for when the Indicator moves aroundthickness
numberThickness of the Indicator
onRender?
React.ComponentType<{element: React.ReactElement}>Optional. Specify a custom component to render every User Element in the editor.onNodesChange?
() => voidOptional. A callback method when the values of any of the nodes in the state changes
Note:
options
can be specified as props in the<Editor />