min-w-24: Tailwind CSS Width class

The min-w-24 class sets the minimum width of an element to 6rem.


Min-w-24

The min-w-24 class sets the minimum width of an element to 6rem.

Example Code

html
<div class="flex justify-center items-center gap-2 p-3 rounded-t-md bg-indigo-50">
<div class="min-w-24 bg-indigo-500 py-4 text-white font-bold rounded-lg px-4">
min-w-24
</div>
</div>

Preview

min-w-24

How to Use

Add the min-w-24 class directly to your HTML element:

html
<div class="min-w-24">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply min-w-24 at specific breakpoints:

html
<div class="sm:min-w-24 md:min-w-24 lg:min-w-24">
Responsive element
</div>
  • sm:min-w-24 — applies from 640px and up
  • md:min-w-24 — applies from 768px and up
  • lg:min-w-24 — applies from 1024px and up

Customization

You can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates