File Dropzone
Svelte ComponentAllow upload of files with drag and drop.
Import
Package
Source
Doc
Examples
Monitor your browser's console when adding files.
Getting Started
Uses input[type='file']
to allow for all native input accessibility.
let files: FileList;
<FileDropzone bind:files />
Title
Use the title
property to provide a custom title.
<FileDropzone title="Upload your Attachment here." />
Notes
Use the notes
property to provide additional text information on a second line.
<FileDropzone notes="Files should not exceed 5mb." />
Message
Use the default slot to replace the default UI entirely.
<FileDropzone>(message)</FileDropzone>