Left align tooltip text when it spans for more than one line #1103
Answered
by
mayank99
muthubentley
asked this question in
Q&A
-
Referred to below URL and implemented tooltip. When the tooltip text is large and spans to two lines, it become center aligned. |
Beta Was this translation helpful? Give feedback.
Answered by
mayank99
Mar 1, 2023
Replies: 1 comment 1 reply
-
Hey @muthubentley, you can pass a custom <Tooltip className='my-tooltip'>...</Tooltip> .my-tooltip {
text-align: left;
} https://codesandbox.io/s/dark-snowflake-4dq24s?file=/src/App.tsx |
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 pass a custom
className
and apply your own styles.https://codesandbox.io/s/dark-snowflake-4dq24s?file=/src/App.tsx