Skip to main content

Text Overflow

Utilities for controlling text overflow in an element.

CSS Property:text-overflow
Classes:3

Text Overflow Classes

ClassCSS
truncateoverflow: hidden; text-overflow: ellipsis; white-space: nowrap;
text-ellipsistext-overflow: ellipsis;
text-cliptext-overflow: clip;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[text-overflow:value]

Responsive Variants

Apply text overflow utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:truncate
768px+md:md:truncate
1024px+lg:lg:truncate
1280px+xl:xl:truncate
1536px+2xl:2xl:truncate