JSFiddle - React, Tailwind, and code Playground

HTML

<div class="icon-search">
    <input type="text"></input>
</div>

CSS

.icon-search:before { 
    content: "\f109"; 
    position: absolute;
    left: 0;
    top: 0;
    height: 24px;
    width: 24px;
    margin-left: .5em;
    width: 0;
    overflow: visible;
    display: inline-block;
    line-height: 24px;
    z-index: 1;
}

.icon-search { 
    position: relative;
    line-height: 24px;
}

.icon-search > input { 
    border-radius: 12px;
    height: 24px;
    border: 1px solid black;
    margin: 0;
    padding: 0;
    padding-left: 32px;
}