Skip to content

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

NameTypeDefaultDescription
buttonOnlybooleanfalseShould display only the button
disabledbooleanfalseIs the input disabled
fileTypesArray() => [CSV, PDF, PNG, JPEG, DOC, XLS]Accepted file types
filesArray() => []Files to display in the component
multiplebooleanfalseAllows upload of multiple files
sizeFileUploadSizestandardComponent size

Slots

NameDescription
submitTextfor custom submit text
hintfor displaying helpful text and/or links

Events

NameDescription
file-select
file-delete
file-error