JSFiddle - React, Tailwind, and code Playground

HTML

<div class="header">
    <form>
        <label>Label</label>
        <input type="text" />
        <input type="submit" value="ok" />
    </form>
</div>

CSS

.header {
    width: 100%;
}
form {
    width: 50%;
    background-color: lightgray;
    display: table;
}
input[type=text], input[type=submit], label {
    display: table-cell;
}
input[type=text] {
    /* Fait passer le bouton ok Ă  la ligne oO */
    /*   width: 100%;  */
}