JSFiddle - React, Tailwind, and code Playground

HTML

<fieldset>
    <label>Name</label><input type="text" /><br />
    <label>Username</label><input type="text" />
</fieldset>
<hr />
<fieldset>
    <label>Password</label><input type="text" /><br />
    <label>Confirm Password</label><input type="text" />
</fieldset>

CSS

label
{
  display: inline-block;
  width: 150px;
}

input[type="text"]
{
    display: inline-block;
    margin-bottom: 5px;
    margin-left: 5px
}