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
The <Chip /> could receive a maxLength property that truncates with ellipsis
<Chip />
maxLength
<Chip label='My Very Long text that needs to truncate' maxLength={2} />
Renders My...
My...
Avoids writing string truncate functions outside of this component.
The text was updated successfully, but these errors were encountered:
@felipesilvati The best approach currently is to apply a max-width CSS property on the chip: #18708
max-width
Duplicate of #18587
e.g.
<Chip style={{ maxWidth: 100 }} />
Sorry, something went wrong.
It is very good, But it would be nice if we could add a title @oliviertassinari How do we add the html title attribute to a chip? ie: <Chip title={chipTitle} /> as <div title='allText'>your text</div>
It is very good, But it would be nice if we could add a title
@oliviertassinari How do we add the html title attribute to a chip? ie:
<Chip title={chipTitle} /> as <div title='allText'>your text</div>
<Chip title={chipTitle} />
<div title='allText'>your text</div>
Nice! It already exists, thanks!
@felipesilvati I would be great if we can display tooltip on chip if elapses are present, don't know how to do that
No branches or pull requests
Summary 💡
The
<Chip />
could receive amaxLength
property that truncates with ellipsisExamples 🌈
Renders
My...
Motivation 🔦
Avoids writing string truncate functions outside of this component.
The text was updated successfully, but these errors were encountered: