ReactFlow
component:import ReactFlow, { MiniMap } from 'react-flow-renderer';const FlowWithMiniMap = () => (<ReactFlow elements={elements}><MiniMapnodeColor={(node) => {switch (node.type) {case 'input':return 'red';case 'default':return '#00ff00';case 'output':return 'rgb(0,0,255)';default:return '#eee';}}}nodeStrokeWidth={3}/></ReactFlow>);
nodeColor
: string or function - If you pass a color as a string all nodes will get that color. If you pass a function you can return a color depending on the passed node.nodeBorderRadius
: numbernodeStrokeWidth
: numbernodeClassName
: string or function for adding an additional class to the nodes inside the mini mapmaskColor
: stringstyle
: css propertiesclassName
: additional class nameMiniMapProps
.