resize

Class Description

resize-none

Sets resize: none. Prevents resizing.

CSS Rules

.resize-none {
  resize: none;
}

Usage

<element class="resize-none" />

Responsive

Prefix .resize-none utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:resize-none" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="resize-none:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="resize-none:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before resize-none::before" />

<element class="content-after resize-none::after" />
.resize-none Sets resize: none. Prevents resizing.

resize

Sets resize: both. Element can be resized in both directions.

CSS Rules

.resize {
  resize: both;
}

Usage

<element class="resize" />

Responsive

Prefix .resize utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:resize" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="resize:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="resize:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before resize::before" />

<element class="content-after resize::after" />
.resize Sets resize: both. Element can be resized in both directions.

resize-y

Sets resize: vertical. Element can only be resized vertically.

CSS Rules

.resize-y {
  resize: vertical;
}

Usage

<element class="resize-y" />

Responsive

Prefix .resize-y utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:resize-y" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="resize-y:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="resize-y:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before resize-y::before" />

<element class="content-after resize-y::after" />
.resize-y Sets resize: vertical. Element can only be resized vertically.

resize-x

Sets resize: horizontal. Element can only be resized horizontally.

CSS Rules

.resize-x {
  resize: horizontal;
}

Usage

<element class="resize-x" />

Responsive

Prefix .resize-x utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:resize-x" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="resize-x:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="resize-x:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before resize-x::before" />

<element class="content-after resize-x::after" />
.resize-x Sets resize: horizontal. Element can only be resized horizontally.