JSFiddle - React, Tailwind, and code Playground

HTML

<div>aaaaaaaaaa
    <span>test</span>
</div>

CSS

div{
    width: 60px;
    border-bottom: 1px solid red;
    word-break:break-all;
}
span{
    float: right
}