JSFiddle - React, Tailwind, and code Playground

HTML

<span class="fileInput">
    <input id="file" type="file" name="file">
    <em>Browse computer</em>
</span>

CSS

.fileInput {
    cursor: pointer;
    height: 25px;
    overflow: hidden;
    position: relative;
    width: 100px;
}

.fileInput em {
    background: linear-gradient(to bottom, #D65A75 0%, #CD4874 100%) repeat scroll 0 0 transparent;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-family: 'Arial';
    font-size: 15px;
    font-style: normal;
    margin-top: 5px;
    padding: 4px 7px;
    text-decoration: none;
    text-shadow: 1px 1px 0 #B8283D;
}

.fileInput input {
    bottom: 0;
    cursor: pointer;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}