JSFiddle - React, Tailwind, and code Playground

by borglinm

HTML

<span class="commit-status">Commit</span>

CSS

.commit-status:before {
    
    
    content: " ";
    background: url('http://upload.wikimedia.org/wikipedia/commons/3/34/Red_star.svg');
    background-size: 10px;
    background-repeat: no-repeat;
    background-size: contain;
    width: 10px;
    height: 10px;
    display: inline-block;
}