You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A file input component that replaces <input type="file"> with a more visual, drag and drop friendly file uploader.
Visual inspiration
What's out of scope
Communicating with backend services
Showing upload progress, as it requires backend communication to reliably gauge progress for large files
Pausing and resuming, as it requires backend communication
Note: the file input will work similarly to the native <input type="file">, so you can submit it with a regular form via enctype="multipart/form-data" or serialize it into FormData. This gives you a mechanism to hook into your server and show upload progress, e.g. using fetch() instead of normal form submission.
Activity
[-]Add `<wa-file-input>`[/-][+]File Input[/+]omnifides commentedon Aug 14, 2025
re: design, taking cues from the inspiration above, I'm envisioning something like this:
With
appearanceandsizesupport to match our other inputs:For
appearance, I'd say this should affect the drop zone but not the listed files. Open to arguments, though! 🤺A rough pen for the styles: https://codepen.io/omnifides/pen/bNVYxqv
schilchSICKAG commentedon Sep 11, 2025
frozenfrank commentedon Nov 29, 2025
@claviska Any update on timelines for this component? Really looking forward to using it to read some files from the local device for my project.
piotrsynowiec commentedon Jan 17, 2026
@claviska I would love to use that component as well.
claviska commentedon Feb 17, 2026
The
<wa-file-input>component is available here: https://webawesome.com/docs/components/file-inputmarin-johnson-dev commentedon Mar 13, 2026
Does this have support for the appearance attributre yet? I would like to have the inside of the drop zone filled a light gray.
claviska commentedon Mar 13, 2026
@marin-johnson-dev not at the moment. You can use CSS Parts as a workaround.