Skip to content

text-wrap

Utilities for controlling how text wraps within an element.

Class Effect
text-wrap text-wrap: wrap;
text-nowrap text-wrap: nowrap;
text-balance text-wrap: balance;
text-pretty text-wrap: pretty;
text-wrap: Allowing text to wraptext-wrap: Allowing text to wrap
if ui.div("w-72") {
ui.text("Beloved Manhattan soup stand closes", "text-wrap text-2xl font-bold text-gray-950 dark:text-white")
}
text-wrap: Preventing text from wrappingtext-wrap: Preventing text from wrapping
if ui.div("w-72 overflow-hidden") {
ui.text("Beloved Manhattan soup stand closes", "text-nowrap text-2xl font-bold text-gray-950 dark:text-white")
}