is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle →. Shuffle™ includes templates for Tailwind CSS, Bootstrap, Bulma, and Material-UI.
← Tailwind CSS classes list

Tailwind CSS class: .truncate

<div class="w-64 bg-gray-200 m-2 truncate">
  <span>Lorem ipsum dolor sit amet,
    consectetur adipiscing elit. Pellentesque 
    justopurusulputateipsumgetsuereacilisisberoroiet pulvinar 
    felis. Vivamus ultricies rutrum, sed malesuada.
  </span>
</div>

Preview

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque justopurusulputateipsumgetsuereacilisisberoroiet pulvinar felis. Vivamus ultricies rutrum, sed malesuada.

CSS source

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

More in Tailwind CSS Text