w-min: Tailwind CSS Width class

The w-min class sets the width to the smallest possible size based on content.


w-min

The w-min class sets the width to the smallest possible size based on content.

Example Code

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

Preview

w-min

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