Skip to content

Left align tooltip text when it spans for more than one line #1103

Answered by mayank99
muthubentley asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @muthubentley, you can pass a custom className and apply your own styles.

<Tooltip className='my-tooltip'>...</Tooltip>
.my-tooltip {
  text-align: left;
}

https://codesandbox.io/s/dark-snowflake-4dq24s?file=/src/App.tsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@muthubentley
Comment options

Answer selected by muthubentley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants