Skip to content

white-space

Utilities for controlling how spaces, tabs, and line breaks are collapsed or preserved.

ISS preview
Iced + ISS preview demonstrating white-space
ISS preview for white-space
use iced::widget::text;
use iss::{tw, TwExt};
let log = text(log_output).tw(tw!("font-mono text-xs whitespace-pre-wrap text-zinc-200"));
Tailwind Class CSS Property / Effect iss::typed Builder
whitespace-normal white-space: normal; .whitespace_normal()
whitespace-nowrap white-space: nowrap; .whitespace_nowrap()
whitespace-pre white-space: pre; .whitespace_pre()
whitespace-pre-line white-space: pre-line; .whitespace_pre_line()
whitespace-pre-wrap white-space: pre-wrap; .whitespace_pre_wrap()
whitespace-break-spaces white-space: break-spaces; .whitespace_break_spaces()

text-wrap · word-break · overflow-wrap · tab-size