File upload
A component that wraps the native html input of type file.
Usage
import { RFileUpload } from '@rebilly/revel';
<r-file-upload v-slot="{ openFileBrowser, setFocus }">
<button @click="openFileBrowser" @focus="setFocus">Upload file</button>
</r-file-upload>
Examples
Upload with preview
| Name | Type | Default | Description |
|---|---|---|---|
| multiple | boolean | false | Allows the user to select more than one file |
| accept | string | '' | String that defines the file types the file input should accept |
| disabled | boolean | false | Disables the upload action. |
| Name | Description |
|---|---|
| default | Element that will trigger the system upload UI |
| Name | Description |
|---|---|
| input |