JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#">Link</a> <a href="#">Link</a>
SCSS
a {
display: inline-block;
text-decoration: none;
&:after {
transition: width .2s ease;
content: '';
display: block;
border-bottom: 1px #000 solid;
width: 0;
}
&:hover:after {
width: 100%;
}
}