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

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="bw-1 r-none bw-1 bc-silver-4 px-3 py-2 fs-md f:oc-silver-1 f:os-s f:ow-2" 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="bw-1 max-h-50 max-w-100 r-b bw-1 bc-silver-4 px-3 py-2 fs-md f:oc-silver-1 f:os-s f:ow-2" 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="bw-1 max-w-100 r-h bw-1 bc-silver-4 px-3 py-2 fs-md f:oc-silver-1 f:os-s f:ow-2" 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="bw-1 max-h-100 r-v bw-1 bc-silver-4 px-3 py-2 fs-md f:oc-silver-1 f:os-s f:ow-2" 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.

Responsive design

Target different screen sizes by adding breakpoint prefixes. Styles apply from the specified breakpoint and up.

Target specific viewport sizes with breakpoint prefixes

sm:r-[value]
Small≥640px
md:r-[value]
Medium≥768px
lg:r-[value]
Large≥1024px
xxl:r-[value]
Extra Large≥1536px

Hover state variant

Apply styles conditionally when users hover over an element using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:r-[value]