signavio / react-mentions

@mention people in a textarea
https://react-mentions.vercel.app
Other
2.47k stars 573 forks source link

Question: is there a way to customize the <Mention display to make it clickable? #752

Open marlounucleus03022000 opened 3 months ago

marlounucleus03022000 commented 3 months ago

Hi, I see that the <Mention tag supports displayTransform that would allow you to customize what string to display

But is there a way also to make the mentioned user to be clickable? because as of now after I clicked one of the suggestion items then it is displayed as a plain text, is it possible to make it clickable, I have tried checking the displayTransform but it would only allow me to return a string not a react node. I wanted it to be clickable so that i can display addition information. Hope you can help me regarding with this one.

Thank you!