File Dropzone
v0.2.0TODO: Add component description.
TODO: Add component description.
Usage
Compositions
Open all 2 →Properties
FileDropzone props
| Prop | Type | Default | Description |
|---|---|---|---|
onFiles* | (files: File[]) => void | — | Called with the chosen files, from either a drop or the click-to-browse fallback |
accept | string | — | Native `accept` attribute passed to the underlying file input, e.g. "image/*,application/pdf" |
className | string | — | Additional class names to merge with the component root element |
label | ReactNode | Drag and drop files here, or click to browse | Prompt content; defaults to a generic drag-and-drop message |
multiple | boolean | true | Whether more than one file can be selected at once; defaults to true |