File Upload
File picker trigger and drag-and-drop dropzone primitives.
Usage
No files selected
API Reference
VoltFileDropzone — volt-file-dropzone
| Input | Type | Default |
|---|---|---|
| fileTypes | string | string[] | — |
| multiple | boolean | false |
| directory | boolean | false |
| disabled | boolean | false |
| Output | Type |
|---|---|
| selected | FileList | null |
| rejected | void |
| dragOverChange | boolean |
VoltFileUpload — [voltFileUpload]
| Input | Type | Default |
|---|---|---|
| fileTypes | string | string[] | — |
| multiple | boolean | false |
| directory | boolean | false |
| dragDrop | boolean | false |
| disabled | boolean | false |
| Output | Type |
|---|---|
| selected | FileList | null |
| canceled | void |
| rejected | void |
| dragOverChange | boolean |
Component Source
Install via CLI:
npx @voltui/cli add file-uploadTypeScript
Loading editor…
Copy this code to your project. The component uses ng-primitives/file-upload.