We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi , currently I try to integrate our component tooltip via using onReflow callback:
export const TextEllipsis = ({ textAlign = 'left', ...props }: Props) => { const [show, setShow] = useState<boolean>(false) return show ? ( <ToolTip text={props.text} variant="guide" placement="bottomRight"> <ResponsiveEllipsis css={css([ellipsisCss, { textAlign }])} basedOn="letters" onReflow={({ clamped }) => { if (clamped) { setShow(true) } }} {...props} /> </ToolTip> ) : ( <ResponsiveEllipsis css={css([ellipsisCss, { textAlign }])} trimRight basedOn="letters" onReflow={({ clamped }) => { if (clamped) { setShow(true) } }} {...props} /> ) }
I hope our library can support tooltip when the text is clamped
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi , currently I try to integrate our component tooltip via using onReflow callback:
I hope our library can support tooltip when the text is clamped
The text was updated successfully, but these errors were encountered: