min-width

Class Description

min-w

Sets min-width via --min-w.

CSS Rules

.min-w {
  min-width: calc(var(--spacing) * var(--min-w));
}

Usage

The .min-w class is flagged as a value-driven selector. The variable --min-w is required.
<element class="min-w" style="--min-w: /* value */;" />

Responsive

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

<element class="md:min-w" style="--md-min-w: /* value */;" />

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="min-w:hover" style="--min-w-hover: /* value */;" />

Group Hover Example

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

<element class="group">
  <element class="min-w: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 min-w::before" style="--min-w-before: /* value */;" />

<element class="content-after min-w::after" style="--min-w-after: /* value */;" />

Shorthand

Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime processes this for you. Unlike :hover that is generating CSS on the fly, shorthand only splits it and appends the corresponding style.

<!-- Input -->
<element class="min-w=value" />

<!-- Output -->
<element class="min-w" style="--min-w: value;" />

CLS Alert

This feature may cause CLS (Cumulative Layout Shift). Make sure to include a z-not-ready class in your <head> tag.

.min-w Sets min-width via --min-w.

[min-w]

Enforces a minimum width using raw --min-w.

CSS Rules

.\[min-w\] {
  min-width: var(--min-w);
}

Usage

The .[min-w] class is flagged as a value-driven selector. The variable --min-w is required.
<element class="[min-w]" style="--min-w: /* value */;" />

Responsive

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

<element class="md:[min-w]" style="--md-min-w: /* value */;" />

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="[min-w]:hover" style="--min-w-hover: /* value */;" />

Group Hover Example

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

<element class="group">
  <element class="[min-w]: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 [min-w]::before" style="--min-w-before: /* value */;" />

<element class="content-after [min-w]::after" style="--min-w-after: /* value */;" />

Shorthand

Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime processes this for you. Unlike :hover that is generating CSS on the fly, shorthand only splits it and appends the corresponding style.

<!-- Input -->
<element class="[min-w]=value" />

<!-- Output -->
<element class="[min-w]" style="--min-w: value;" />

CLS Alert

This feature may cause CLS (Cumulative Layout Shift). Make sure to include a z-not-ready class in your <head> tag.

.[min-w] Enforces a minimum width using raw --min-w.

min-w-3xs

Sets the minimum width to the 3xs container size variable.

CSS Rules

.min-w-3xs {
  min-width: var(--container-3xs);
}

Usage

<element class="min-w-3xs" />

Responsive

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

<element class="md:min-w-3xs" />

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="min-w-3xs: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="min-w-3xs: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 min-w-3xs::before" />

<element class="content-after min-w-3xs::after" />
.min-w-3xs Sets the minimum width to the 3xs container size variable.

min-w-2xs

Sets the minimum width to the 2xs container size variable.

CSS Rules

.min-w-2xs {
  min-width: var(--container-2xs);
}

Usage

<element class="min-w-2xs" />

Responsive

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

<element class="md:min-w-2xs" />

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="min-w-2xs: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="min-w-2xs: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 min-w-2xs::before" />

<element class="content-after min-w-2xs::after" />
.min-w-2xs Sets the minimum width to the 2xs container size variable.

min-w-xs

Sets the minimum width to the xs container size variable.

CSS Rules

.min-w-xs {
  min-width: var(--container-xs);
}

Usage

<element class="min-w-xs" />

Responsive

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

<element class="md:min-w-xs" />

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="min-w-xs: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="min-w-xs: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 min-w-xs::before" />

<element class="content-after min-w-xs::after" />
.min-w-xs Sets the minimum width to the xs container size variable.

min-w-sm

Sets the minimum width to the sm container size variable.

CSS Rules

.min-w-sm {
  min-width: var(--container-sm);
}

Usage

<element class="min-w-sm" />

Responsive

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

<element class="md:min-w-sm" />

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="min-w-sm: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="min-w-sm: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 min-w-sm::before" />

<element class="content-after min-w-sm::after" />
.min-w-sm Sets the minimum width to the sm container size variable.

min-w-md

Sets the minimum width to the md container size variable.

CSS Rules

.min-w-md {
  min-width: var(--container-md);
}

Usage

<element class="min-w-md" />

Responsive

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

<element class="md:min-w-md" />

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="min-w-md: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="min-w-md: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 min-w-md::before" />

<element class="content-after min-w-md::after" />
.min-w-md Sets the minimum width to the md container size variable.

min-w-lg

Sets the minimum width to the lg container size variable.

CSS Rules

.min-w-lg {
  min-width: var(--container-lg);
}

Usage

<element class="min-w-lg" />

Responsive

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

<element class="md:min-w-lg" />

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="min-w-lg: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="min-w-lg: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 min-w-lg::before" />

<element class="content-after min-w-lg::after" />
.min-w-lg Sets the minimum width to the lg container size variable.

min-w-xl

Sets the minimum width to the xl container size variable.

CSS Rules

.min-w-xl {
  min-width: var(--container-xl);
}

Usage

<element class="min-w-xl" />

Responsive

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

<element class="md:min-w-xl" />

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="min-w-xl: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="min-w-xl: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 min-w-xl::before" />

<element class="content-after min-w-xl::after" />
.min-w-xl Sets the minimum width to the xl container size variable.

min-w-2xl

Sets the minimum width to the 2xl container size variable.

CSS Rules

.min-w-2xl {
  min-width: var(--container-2xl);
}

Usage

<element class="min-w-2xl" />

Responsive

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

<element class="md:min-w-2xl" />

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="min-w-2xl: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="min-w-2xl: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 min-w-2xl::before" />

<element class="content-after min-w-2xl::after" />
.min-w-2xl Sets the minimum width to the 2xl container size variable.

min-w-3xl

Sets the minimum width to the 3xl container size variable.

CSS Rules

.min-w-3xl {
  min-width: var(--container-3xl);
}

Usage

<element class="min-w-3xl" />

Responsive

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

<element class="md:min-w-3xl" />

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="min-w-3xl: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="min-w-3xl: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 min-w-3xl::before" />

<element class="content-after min-w-3xl::after" />
.min-w-3xl Sets the minimum width to the 3xl container size variable.

min-w-4xl

Sets the minimum width to the 4xl container size variable.

CSS Rules

.min-w-4xl {
  min-width: var(--container-4xl);
}

Usage

<element class="min-w-4xl" />

Responsive

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

<element class="md:min-w-4xl" />

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="min-w-4xl: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="min-w-4xl: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 min-w-4xl::before" />

<element class="content-after min-w-4xl::after" />
.min-w-4xl Sets the minimum width to the 4xl container size variable.

min-w-5xl

Sets the minimum width to the 5xl container size variable.

CSS Rules

.min-w-5xl {
  min-width: var(--container-5xl);
}

Usage

<element class="min-w-5xl" />

Responsive

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

<element class="md:min-w-5xl" />

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="min-w-5xl: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="min-w-5xl: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 min-w-5xl::before" />

<element class="content-after min-w-5xl::after" />
.min-w-5xl Sets the minimum width to the 5xl container size variable.

min-w-6xl

Sets the minimum width to the 6xl container size variable.

CSS Rules

.min-w-6xl {
  min-width: var(--container-6xl);
}

Usage

<element class="min-w-6xl" />

Responsive

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

<element class="md:min-w-6xl" />

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="min-w-6xl: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="min-w-6xl: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 min-w-6xl::before" />

<element class="content-after min-w-6xl::after" />
.min-w-6xl Sets the minimum width to the 6xl container size variable.

min-w-7xl

Sets the minimum width to the 7xl container size variable.

CSS Rules

.min-w-7xl {
  min-width: var(--container-7xl);
}

Usage

<element class="min-w-7xl" />

Responsive

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

<element class="md:min-w-7xl" />

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="min-w-7xl: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="min-w-7xl: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 min-w-7xl::before" />

<element class="content-after min-w-7xl::after" />
.min-w-7xl Sets the minimum width to the 7xl container size variable.

min-w-auto

Sets the minimum width to auto.

CSS Rules

.min-w-auto {
  min-width: auto;
}

Usage

<element class="min-w-auto" />

Responsive

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

<element class="md:min-w-auto" />

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="min-w-auto: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="min-w-auto: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 min-w-auto::before" />

<element class="content-after min-w-auto::after" />
.min-w-auto Sets the minimum width to auto.

min-w-full

Sets the minimum width to 100% of the parent container.

CSS Rules

.min-w-full {
  min-width: 100%;
}

Usage

<element class="min-w-full" />

Responsive

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

<element class="md:min-w-full" />

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="min-w-full: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="min-w-full: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 min-w-full::before" />

<element class="content-after min-w-full::after" />
.min-w-full Sets the minimum width to 100% of the parent container.

min-w-screen

Sets the minimum width to 100vw (viewport width).

CSS Rules

.min-w-screen {
  min-width: 100vw;
}

Usage

<element class="min-w-screen" />

Responsive

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

<element class="md:min-w-screen" />

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="min-w-screen: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="min-w-screen: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 min-w-screen::before" />

<element class="content-after min-w-screen::after" />
.min-w-screen Sets the minimum width to 100vw (viewport width).

min-w-dvw

Sets the minimum width to 100 dynamic viewport widths.

CSS Rules

.min-w-dvw {
  min-width: 100dvw;
}

Usage

<element class="min-w-dvw" />

Responsive

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

<element class="md:min-w-dvw" />

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="min-w-dvw: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="min-w-dvw: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 min-w-dvw::before" />

<element class="content-after min-w-dvw::after" />
.min-w-dvw Sets the minimum width to 100 dynamic viewport widths.

min-w-dvh

Sets the minimum width to 100 dynamic viewport heights.

CSS Rules

.min-w-dvh {
  min-width: 100dvh;
}

Usage

<element class="min-w-dvh" />

Responsive

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

<element class="md:min-w-dvh" />

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="min-w-dvh: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="min-w-dvh: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 min-w-dvh::before" />

<element class="content-after min-w-dvh::after" />
.min-w-dvh Sets the minimum width to 100 dynamic viewport heights.

min-w-lvw

Sets the minimum width to 100 large viewport widths.

CSS Rules

.min-w-lvw {
  min-width: 100lvw;
}

Usage

<element class="min-w-lvw" />

Responsive

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

<element class="md:min-w-lvw" />

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="min-w-lvw: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="min-w-lvw: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 min-w-lvw::before" />

<element class="content-after min-w-lvw::after" />
.min-w-lvw Sets the minimum width to 100 large viewport widths.

min-w-lvh

Sets the minimum width to 100 large viewport heights.

CSS Rules

.min-w-lvh {
  min-width: 100lvh;
}

Usage

<element class="min-w-lvh" />

Responsive

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

<element class="md:min-w-lvh" />

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="min-w-lvh: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="min-w-lvh: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 min-w-lvh::before" />

<element class="content-after min-w-lvh::after" />
.min-w-lvh Sets the minimum width to 100 large viewport heights.

min-w-svw

Sets the minimum width to 100 small viewport widths.

CSS Rules

.min-w-svw {
  min-width: 100svw;
}

Usage

<element class="min-w-svw" />

Responsive

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

<element class="md:min-w-svw" />

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="min-w-svw: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="min-w-svw: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 min-w-svw::before" />

<element class="content-after min-w-svw::after" />
.min-w-svw Sets the minimum width to 100 small viewport widths.

min-w-svh

Sets the minimum width to 100 small viewport heights.

CSS Rules

.min-w-svh {
  min-width: 100svh;
}

Usage

<element class="min-w-svh" />

Responsive

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

<element class="md:min-w-svh" />

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="min-w-svh: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="min-w-svh: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 min-w-svh::before" />

<element class="content-after min-w-svh::after" />
.min-w-svh Sets the minimum width to 100 small viewport heights.

min-w-min

Sets the minimum width to the intrinsic minimum width of the content.

CSS Rules

.min-w-min {
  min-width: min-content;
}

Usage

<element class="min-w-min" />

Responsive

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

<element class="md:min-w-min" />

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="min-w-min: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="min-w-min: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 min-w-min::before" />

<element class="content-after min-w-min::after" />
.min-w-min Sets the minimum width to the intrinsic minimum width of the content.

min-w-max

Sets the minimum width to the intrinsic maximum width of the content.

CSS Rules

.min-w-max {
  min-width: max-content;
}

Usage

<element class="min-w-max" />

Responsive

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

<element class="md:min-w-max" />

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="min-w-max: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="min-w-max: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 min-w-max::before" />

<element class="content-after min-w-max::after" />
.min-w-max Sets the minimum width to the intrinsic maximum width of the content.

min-w-fit

Sets the minimum width to fit the element's content.

CSS Rules

.min-w-fit {
  min-width: fit-content;
}

Usage

<element class="min-w-fit" />

Responsive

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

<element class="md:min-w-fit" />

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="min-w-fit: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="min-w-fit: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 min-w-fit::before" />

<element class="content-after min-w-fit::after" />
.min-w-fit Sets the minimum width to fit the element's content.