Skip to content

No line break when tooltip text is dynamic #279

@lovetann

Description

@lovetann

I would like to have line breaks in my tooltip, but in stead the
is displayed as text, and I can't figure out how to format it correctly. In short my code looks like this:

var tooltiptest = 'this is <br /> a test';

<div data-tip data-for='path'>Path</div>

<ReactTooltip id='path' type='light' multiline={true}>
            <span>{tooltiptest}</span>
 </ReactTooltip>

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions