Upload
Upload one or more files
# Drag and drop
# API
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | File, Array<File> | — | [] |
drag-drop | Accepts drag & drop and change its style | Boolean | — | false |
type | Type (color) of the drag area when hovered | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | is-primary |
disabled | Same as native disabled | Boolean | — | false |
name | Same as native name | String | — | - |
required | Same as native required | Boolean | — | false |
accept | Same as native accept | String | — | - |
loading | Add the loading state | Boolean | — | false |
multiple | Same as native, also push new item to v-model instead of replacing | Boolean | — | false |
native | Replace last chosen files every time (like native file input element) | Boolean | — | false |
This page is open source. Noticed a typo or something's unclear?