InteractivityResize

Resize

Controls the way an item can be resized.

Limited availability

This feature does not work in some of the most widely-used browsers.

Chrome
Edge
Firefox
Safari
ClassStyle
r-bresize: both;
r-hresize: horizontal;
r-noneresize: none;
r-vresize: vertical;

None

Initial value

Prevents the element from being resized by the user.

Try resizing the text area to see how it changes in size.
<div class="d-f fd-c">
<label class="mb-2">Write a message:</label>
<textarea class="b-1 r-none" rows="4"></textarea>
</div>

Both

Allows the element to be resized both horizontally and vertically.

Try resizing the text area to see how it changes in size.
<div class="d-f fd-c">
<label class="mb-2">Write a message:</label>
<textarea class="b-1 max-h-50 max-w-100 r-b" rows="4"></textarea>
</div>

Horizontal

Allows the element to be resized only in the horizontal direction.

Try resizing the text area to see how it changes in size.
<div class="d-f fd-c">
<label class="mb-2">Write a message:</label>
<textarea class="b-1 max-w-100 r-h" rows="4"></textarea>
</div>

Vertical

Allows the element to be resized only in the vertical direction.

Try resizing the text area to see how it changes in size.
<div class="d-f fd-c">
<label class="mb-2">Write a message:</label>
<textarea class="b-1 max-h-50 r-v" rows="4"></textarea>
</div>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:r-*, md:r-*, lg:r-*, and xxl:r-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:r-* utility to override elements and change their values when hovering over them.