JSFiddle - React, Tailwind, and code Playground

by ahmedadil1000

HTML

<div class="wrapper">
    <button type="button" class="new_button">Create New</button>
    <form name="input" action="" method="post">
        Search: 
<input id="txt" type="text" onkeypress="this.style.width = ((this.value.length + 1) * 8) + 'px';"></input>
        <input type="submit" value="Submit"></input>
    </form>
</div>

CSS

.wrapper
{
    background-color: #cccccc;
    width: 100%;
    height: 50px;
}

.new_button
{
    float: left;
    min-width: 120px;
}

.search_input
{
    width: 30%;
}