Interactivity
Utilities for controlling how an element can be resized.
| Class | Styles | 
|---|---|
| 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.