Add color to the node #26
Answered
by
iamppz
BrittoAlbin
asked this question in
Q&A
-
How to add color to the nodes dynamically |
Beta Was this translation helpful? Give feedback.
Answered by
iamppz
Nov 18, 2022
Replies: 2 comments 2 replies
-
Colors are currently not customizable, but I will add support for custom svg attributes (including background and border colors) in the next few days. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Please upgrade flowchart-react to 3.8.1, use const [nodes, setNodes] = useState<NodeData[]>([
...
{
x: 400,
y: 240,
id: 3,
title: "Joyce",
type: "operation",
containerProps: {fill: "blue", stroke: "red"},
textProps: {fill: "yellow"}
},
]); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
iamppz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please upgrade flowchart-react to 3.8.1, use
containerProps
&textProps
to change node color: