JSFiddle - React, Tailwind, and code Playground
HTML
<div class="flex">
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
</div>
CSS
.flex {
display: flex;
flex-wrap: wrap;
gap: 1px;
}
.test {
height: 100px;
background: red;
flex: 1 1;
min-width: 200px;
}