JSFiddle - React, Tailwind, and code Playground

by Michael Prosser

HTML

<input type="file">
<input type="file" capture="environment">

CSS

input[type="file"]{
  width: 48px;
  height: 56px;
  position: relative;
  cursor: pointer;
}
input[type="file"]:after{
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  background-color: #fff;
  cursor: pointer;
  display: block;
  height: 32px;
  z-index: 9;
  opacity: 1;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center top;
  background-image:...