Open this example in the interactive library
Source code
<div class="demo whitespace-pre-wrap max-w-[20ch]">
First line Indented line with extra words
</div>
Preserve newlines and wrap long lines with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo whitespace-pre-wrap max-w-[20ch]">
First line Indented line with extra words
</div>