Skip to content

word-break

Utilities for controlling word breaks in an element.

Class Effect
break-normal word-break: normal;
break-all word-break: break-all;
break-keep word-break: keep-all;

Use break-all or wrap-anywhere to break words that would otherwise overflow.

word-break: Breaking long wordsword-break: Breaking long words
if ui.div("grid grid-cols-2 gap-6") {
if ui.div("w-40 rounded-lg bg-gray-50 p-3 dark:bg-white/5") {
ui.text("Supercalifragilisticexpialidocious", "text-sm text-gray-700 dark:text-gray-300")
}
if ui.div("w-40 rounded-lg bg-gray-50 p-3 dark:bg-white/5") {
ui.text("Supercalifragilisticexpialidocious", "break-all text-sm text-gray-700 dark:text-gray-300")
}
}