JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text"><span class="close-icon">x</span>

CSS

.close-icon{
    position:relative;
    left: -14px;
    top: -4px;
}