JSFiddle - React, Tailwind, and code Playground
HTML
<div class="search">
<input type="text" />
<button type="submit">Go</button>
</div>
CSS
.search {
box-sizing: border-box;
background: #0f0;
padding: 5px 100px 5px 5px;
position: relative;
width: 300px;
}
.search input {
width: 100%;
}
.search button {
position: absolute;
top: 5px;
right: 5px;
width: 85px;
}