I'm currently working on a multiline tooltip project and using [this particular example] as a reference due to its functional components. While the tooltip works well with short text, I'm encountering an issue when the text exceeds a single line, as it does not automatically go to a new line.
My attempts to resolve this included adding </br> tags within the content itself, converting the content into jsx format, and implementing the following CSS code:
width: 200px;
word-wrap: break-word;
However, these efforts only resulted in reducing the background width of the tooltip to 200px.
Could anyone provide guidance on how to modify the code from the example to ensure that the content wraps to a new line when exceeding the specified width?