ellipsis

Truncates text of the current element and adds an ellipsis to represent overflow.

Arguments

NameTypeDefaultDescription
$max-widthnumber100%The element width limit.

Example

@use 'more-sass' as more;

.element {
  @include more.ellipsis;
}
.element {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
Edit this page on GitHub Updated at Tue, Jun 24, 2025