Text Overflow and Truncation β
Utilities for controlling text overflow and truncation.
| Class Name | CSS Equivalent |
|---|---|
| .text-clip | text-overflow: clip; |
| .text-ellipsis | text-overflow: ellipsis; |
| .truncate | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; |
Truncate β
Use truncate to truncate overflowing text with an ellipsis (β¦) if needed.
html
<p class="[...] truncate ">...</p>Ellipsis β
Use text-ellipsis to truncate overflowing text with an ellipsis (β¦) if needed.
html
<p class="[...] text-ellipsis overflow-hidden">...</p>Clip β
Use text-clip to truncate the text at the limit of the content area.
html
<p class="[...] text-clip overflow-hidden">...</p>