JSFiddle - React, Tailwind, and code Playground

by John Wick

HTML

<label for="imgfile">File input</label>
<input type="file" name="imgfile" accept='application/msword,application/vnd.ms-excel,application/pdf,text/plain' />