MrBlenny / react-flow-chart

🌊 A flexible, stateless, declarative flow chart library for react.
https://mrblenny.github.io/react-flow-chart/index.html
MIT License
1.49k stars 306 forks source link

Is there a way for customize specific node, like the background color or size ? #101

Closed wahyupratamaputra closed 4 years ago

ghost commented 4 years ago

You can look at this examples.

Custom node https://mrblenny.github.io/react-flow-chart/index.html?path=/story/custom-components--node https://github.com/MrBlenny/react-flow-chart/blob/master/stories/CustomNodeInner.tsx

Custom Link https://github.com/MrBlenny/react-flow-chart/blob/master/stories/CustomLink.tsx https://mrblenny.github.io/react-flow-chart/index.html?path=/story/custom-components--canvas-link

wahyupratamaputra commented 4 years ago

yes i saw that, i'm sorry that im new in react,,

how i can use these in my component ? it said it must be .ts file and after i change to .ts it wont work

ghost commented 4 years ago

This web site can help you.

https://www.typescriptlang.org/play/