FileUpload API
API reference docs for the Stash FileUpload
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import FileUpload from '@leaflink/stash/FileUpload.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
buttonOnly | boolean | false | Should display only the button |
disabled | boolean | false | Is the input disabled |
fileTypes | Array | () => [CSV, PDF, PNG, JPEG, DOC, XLS] | Accepted file types |
files | Array | () => [] | Files to display in the component |
multiple | boolean | false | Allows upload of multiple files |
size | FileUploadSize | standard | Component size |
Slots
Name | Description |
---|---|
submitText | for custom submit text |
hint | for displaying helpful text and/or links |
Events
Name | Description |
---|---|
file-select | |
file-delete | |
file-error |