JSFiddle - React, Tailwind, and code Playground
HTML
<h1 class="pseudo_border">My header</h1>
CSS
.pseudo_border {
position:relative;
display:inline-block;
}
.pseudo_border:after {
content:'';
position:absolute;
left:0;right:0;
top:100%;
margin: 10px auto;
width:50%;
height:6px;
background:#00f;
}