JSFiddle - React, Tailwind, and code Playground

HTML

<div id="widnow">
    <div id="title_bar">
        
        <center>
        <div id="verti">&#8593;</div>
        </center>
        
        <left>
        <div id="hori">&#8592;</div>
        </left>
        
    </div>
    <div id="box">
    </div>
</div>

CSS

#widnow{
    width:500px;
    border:solid 1px;
}

#title_bar{
    background: #FEFEFE;
    height: 25px;
    width: 100%;
}
#hori{
    border:solid 1px;
    width: 25px;
    height: 25px;
    float:right;
    cursor:pointer;
}
#verti{
    border:solid 1px;
    width: 25px;
    height: 25px;
    float:right;
    cursor:pointer;
}
#box{
    height: 250px;
    background: #999;
}

JavaScript

$("#verti").click(function(){
    if($(this).html() == "&#8593;"){
        $(this).html("&#8595;");
    }
    else{
        $(this).html("&#8593;");
    }
    $('#box').animate({height: 'toggle'});

});


$("#hori").click(function(){
    if($(this).html() == "&#8592;"){
        $(this).html("&#8594;");
    }
    else{
        $(this).html("&#8592;");
    }
    $('#box').animate({width: 'toggle'});

});