Open this example in the interactive library
Source code
<textarea
class="demo field-sizing-content min-h-12 max-h-32"
aria-label="Growing notes"
>
Keep typing</textarea>
Let a textarea grow as you type with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<textarea
class="demo field-sizing-content min-h-12 max-h-32"
aria-label="Growing notes"
>
Keep typing</textarea>