JSFiddle - React, Tailwind, and code Playground

HTML

<span class="btn">Click Me</span>

CSS

.btn{
    display: inline-block;
    padding: 20px;
    background-color: purple;
    color: white;
    position: relative;
    transition: all 0.35s;
    overflow: hidden;
}
.btn::before{
    content: '>';
    position: absolute;
    left: -10px;
    top: 50%;
    height: 16px;
    width: 10px;
    margin-top: -8px;
}

.show-arrow{
    text-indent: 20px;
    padding-left: 10px;
}

JavaScript

$('.btn').click(function(){
    $(this).toggleClass('show-arrow');
});