JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <div>Some Text</div>
    <form>
        <button>MyButton</button>
        <div class="stretcher"><input type="text" /></div>
    </form>
</div>

CSS

.stretcher {
    overflow: hidden;
}

button {
    float: right;
}

input {
    width: 100%;
}