Windframe
Build Tailwind UIs that actually look good!
.jpg)
The flex-initial class sets an element's flex property to its initial value: it doesn't grow or shrink and takes up only the space it needs.
The flex-initial class sets an element's flex property to its initial value: it doesn't grow or shrink and takes up only the space it needs.
<div class="flex p-10 bg-yellow-50 space-x-5"> <div class="flex-initial bg-blue-500 p-4 text-center text-white font-bold rounded">Flex-initial</div> <div class="bg-blue-200 p-4 flex-grow text-center text-white font-bold rounded">flex-grow</div></div>Add the flex-initial class directly to your HTML element:
<div class="flex-initial"> <!-- Your content here --></div>Use Tailwind's responsive prefixes to apply flex-initial at specific breakpoints:
<div class="sm:flex-initial md:flex-initial lg:flex-initial"> Responsive element</div>sm:flex-initial — applies from 640px and upmd:flex-initial — applies from 768px and uplg:flex-initial — 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
