How to insert line break in contents of tooltip #1121
Answered
by
mayank99
muthubentley
asked this question in
Q&A
-
How to insert line break in contents of tooltip tsx: <Tooltip content="simple tooltip" className="customtooltip">
<Slider min={-1000} max={1000} step={10} />
</Tooltip> css: .customtooltip{
text-align: left;
white-space: pre-wrap;
} |
Beta Was this translation helpful? Give feedback.
Answered by
mayank99
Mar 8, 2023
Replies: 1 comment 1 reply
-
hey @muthubentley, you can use html inside <Tooltip
content={
<>
<div>simple</div>
<div>tooltip</div>
</>
}
>
...
</Tooltip> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
muthubentley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey @muthubentley, you can use html inside
content
to separate the lines.