JSFiddle - React, Tailwind, and code Playground
HTML
<div class="grouper borderhelper">
<p style="display:inline">test</p>
<svg class="icon" focusable="false" viewBox="0 0 24 24" aria-hidden="true" role="presentation"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"></path><path fill="none" d="M0 0h24v24H0z"></path></svg>
</div>
CSS
.grouper {
display: inline-flex;
vertical-align: middle;
align-items: center;
width: 100%;
}
.borderhelper {
border-style: solid;
border-width: 1px;
border-color: 0;
}
.icon {
width: 1em;
height: 1em;
display: inline-block;
font-size: 24px;
}
p {
margin: 0px;
}