JSFiddle - React, Tailwind, and code Playground

by Front Dev

HTML

<div class="block-choose_file">
    <div class="choose_file">
        <button class="btn btn-gray-gr">Choose File</button>
        <span class="aaa">Select File From Folder</span>
        <input type="file" class="filestyle" id="inputFile"></div>
</div>

CSS

.choose_file{
    position: relative;
    overflow: hidden;
    border:5px solid #dfdfdf;
    background: #ebebeb;
    border-radius: 15px;
    color:#969696;
    font-family: OpenSansRegular;
    width:386px;
    margin: 30px auto;
}
.choose_file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

JavaScript

$('#inputFile').change(function(){
            var inputNewText = $(this).val();
            $('.aaa').text(inputNewText)
        })