Skip to content

text-wrap

Utilities for controlling how multi-line text wraps across lines.

ISS preview
Iced + ISS preview demonstrating text-wrap
ISS preview for text-wrap
use iced::widget::text;
use iss::{tw, TwExt};
let headline = text("Compile-Time Validated Tailwind CSS v4").tw(tw!("text-2xl font-bold text-balance"));
Tailwind Class CSS Property / Effect iss::typed Builder
text-wrap text-wrap: wrap; .text_wrap()
text-nowrap text-wrap: nowrap; .text_nowrap()
text-balance text-wrap: balance; .text_balance()
text-pretty text-wrap: pretty; .text_pretty()

white-space · word-break · overflow-wrap