Skip to content

Sizing

Min-Width

Utilities for setting the minimum width of an element.

Quick reference

ClassDescription
min-w-0min-width: 0rem
min-w-1min-width: 0.1rem
min-w-2min-width: 0.2rem
min-w-4min-width: 0.4rem
min-w-6min-width: 0.6rem
min-w-8min-width: 0.8rem
min-w-10min-width: 1rem
min-w-12min-width: 1.2rem
min-w-14min-width: 1.4rem
min-w-16min-width: 1.6rem
min-w-20min-width: 2rem
min-w-24min-width: 2.4rem
min-w-28min-width: 2.8rem
min-w-32min-width: 3.2rem
min-w-40min-width: 4rem
min-w-44min-width: 4.4rem
min-w-48min-width: 4.8rem
min-w-56min-width: 5.6rem
min-w-64min-width: 6.4rem
min-w-80min-width: 8rem
min-w-96min-width: 9.6rem
min-w-112min-width: 11.2rem
min-w-128min-width: 12.8rem
min-w-144min-width: 14.4rem
min-w-fullmin-width: 100%
min-w-minmin-width: min-content
min-w-maxmin-width: max-content
min-w-fitmin-width: fit-content

Basic usage

Setting the minimum width

Set the minimum width of an element using the min-w-{width} utilities.

html
<span class="min-w-full ...">
  <!-- ... -->
</span>

Arbitrary values

If you need to use a one-off min-width value that doesn't make sense to include in your theme, use square brackets to generate a property on the fly using any arbitrary value.

html
<div class="min-w-[50]">
  <!-- ... -->
</div>

Applying conditionally

Breakpoints and media queries

You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. For example, use md:min-w-0 to apply the min-w-0 utility at only medium screen sizes and above.

html
<div class="w-24 min-w-full md:min-w-0">
  <!-- ... -->
</div>