The drop zone component lets users upload files by dragging and dropping the files into an area on a page, or activating a button.
[]
Drop zones should:
The drop zone component validates file type by default. File types you wish to accept can be defined by editing the accept property. This component also accepts custom validations using the customValidator property. When validation fails, the components sets itself to error mode.
Validation error messages should be:
File size must be less than 20MBFile type must be .pdf, .doc, or .docxThe drop zone component builds on the native HTML <input type="upload" /> element. It includes a visual <button> as well as a drag and drop area that can receive keyboard focus.
To upload a file with the keyboard, users can interact with the drag-and-drop region.