Skip to content

text-overflow

Utilities for controlling how the text of an element overflows.

Class Effect
truncate overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
text-ellipsis text-overflow: ellipsis;
text-clip text-overflow: clip;

Use truncate to keep text on one line and end it with an ellipsis.

text-overflow: Truncating texttext-overflow: Truncating text
if ui.div("w-64 rounded-lg bg-gray-50 p-4 dark:bg-white/5") {
ui.text(PROSE, "truncate text-sm text-gray-700 dark:text-gray-300")
}