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; |
Examples
Section titled “Examples”Breaking long words
Section titled “Breaking long words”Use break-all or wrap-anywhere to break words that would otherwise overflow.


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") }}