Open flashnt opened 2 years ago
@flashnt this would probably be better as a discussion: https://github.com/Eliav2/react-xarrows/discussions
Here you go:
const [color, setColor] = useState('#999999');
return (
<Xarrow
color={color}
passProps={{ onMouseOver: () => setColor('#333333'), onMouseOut: () => setColor('#999999') }}
/>
);
Can I ask how I can change the arrow color and more customization (such as displaying label) on hover? Thank you for your great API!