Windframe
Build Tailwind UIs that actually look good!
.jpg)
The min-w-fit class ensures the element width adapts to fit its content without being smaller.
The min-w-fit class ensures the element's width adapts to fit its content without being smaller.
<div class="flex justify-center items-center gap-2 p-3 rounded-t-md bg-indigo-50"> <div class="min-w-fit bg-indigo-500 py-4 text-white font-bold rounded-lg px-4"> min-w-fit</div></div>min-w-fit
Add the min-w-fit class directly to your HTML element:
<div class="min-w-fit"> <!-- Your content here --></div>Use Tailwind's responsive prefixes to apply min-w-fit at specific breakpoints:
<div class="sm:min-w-fit md:min-w-fit lg:min-w-fit"> Responsive element</div>sm:min-w-fit — applies from 640px and upmd:min-w-fit — applies from 768px and uplg:min-w-fit — applies from 1024px and upYou 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
