Skip to content
Discussion options

You must be logged in to vote

Please upgrade flowchart-react to 3.8.1, use containerProps & textProps to change node color:

const [nodes, setNodes] = useState<NodeData[]>([
  ...
  {
    x: 400,
    y: 240,
    id: 3,
    title: "Joyce",
    type: "operation",
    containerProps: {fill: "blue", stroke: "red"},
    textProps: {fill: "yellow"}
  },
]);

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@BrittoAlbin
Comment options

Comment options

You must be logged in to vote
1 reply
@BrittoAlbin
Comment options

Answer selected by iamppz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants