Skip to content

overflow-wrap

Utilities for controlling line breaks within words in an overflowing element.

Class Effect
wrap-break-word overflow-wrap: break-word;
wrap-anywhere overflow-wrap: anywhere;
wrap-normal overflow-wrap: normal;

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

overflow-wrap: Breaking long wordsoverflow-wrap: 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")
}
}