JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<form>
    <label for="name">Name</label>
    <div class="formField">
        <input class="valid" type="text" name="name" />
    </div>
</form>

CSS

form{
  background:black;
  padding: 40px;
}
label{
  color: white;
  margin-bottom: 10px;
}
.formField{
    border-color: #28a745;
    position: relative;
    background-color: white;
    padding: 10px 30px 10px 20px;
}
input.valid{
    background-color: transparent;
    border: 0;
    width: 100%;
    outline: 0;
}
.formField:after{
    position: absolute;
    transform: translate(0,-50%);
    right: 10px;
    top: 50%;
    font-family: "Font Awesome 5 Pro";
    content: "\f06a";
}