Skip to content

API Type UIWhiteSpaceCollapse

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

Type Alias: UIWhiteSpaceCollapse

type UIWhiteSpaceCollapse = "collapse" | "preserve" | "preserve-breaks" | "break-spaces";

Defined in: src/engine/ui/components.ts:58

ADR 0432: how a text's spaces and line breaks show (CSS white-space-collapse): collapse (HTML's default: runs of spaces, tabs and line breaks are one space), preserve (kept as written), preserve-breaks (line breaks kept, spaces collapsed), break-spaces (kept, and spaces at the end of a line take room there and may wrap).

Clone this wiki locally