rembrembdocs

resize

Utilities for controlling how an element can be resized.

ClassStyles
resize-none
resize: none;

| | resize |

resize: both;

| | resize-y |

resize: vertical;

| | resize-x |

resize: horizontal;

|

Use resize to make an element horizontally and vertically resizable:

Drag the textarea handle in the demo to see the expected behavior

<textarea class="resize rounded-md ..."></textarea>

Use resize-y to make an element vertically resizable:

Drag the textarea handle in the demo to see the expected behavior

<textarea class="resize-y rounded-md ..."></textarea>

Use resize-x to make an element horizontally resizable:

Drag the textarea handle in the demo to see the expected behavior

<textarea class="resize-x rounded-md ..."></textarea>

Use resize-none to prevent an element from being resizable:

Notice that the textarea handle is gone

<textarea class="resize-none rounded-md"></textarea>

Prefix a resize utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:

<div class="resize-none md:resize ...">  <!-- ... --></div>

Learn more about using variants in the variants documentation.

On this page

[

Refactoring UI

From the creators of Tailwind CSS

Make your ideas look awesome, without relying on a designer.

“This is the survival kit I wish I had when I started building apps.”

Derrick Reimer, SavvyCal

](https://www.refactoringui.com/?ref=sidebar)

Copyright © 2026 Tailwind Labs Inc.·Trademark Policy