Complete the code to make the flex item grow to fill available space.
<div class="flex"> <div class="bg-blue-500 [1]">Box</div> </div>
The Tailwind class grow makes the flex item grow to fill available space.
Complete the code to prevent the flex item from shrinking when the container is too small.
<div class="flex"> <div class="bg-red-500 [1]">No shrink</div> </div>
The Tailwind class shrink-0 prevents the flex item from shrinking.
Fix the error in the flex container to allow items to shrink properly.
<div class="flex [1]"> <div class="bg-green-400 shrink">Item</div> </div>
The class flex-wrap allows flex items to wrap and shrink properly when needed.
Fill both blanks to create a flex container with items that grow and do not shrink.
<div class="flex [1]"> <div class="bg-yellow-300 [2]">Grow no shrink</div> </div>
Use flex-nowrap to prevent wrapping and shrink-0 to prevent shrinking of the item.
Fill all three blanks to create a flex container with items that grow, shrink, and wrap properly.
<div class="flex [1]"> <div class="bg-purple-400 [2] [3]">Flexible item</div> </div>
The container uses flex-wrap to allow wrapping. The item uses grow to expand and shrink to shrink when needed.