Revel
GitHub
GitHub
  • Overview

    • Getting started
    • FAQ
    • Release notes
  • Foundations

    • Meet the standard
    • Accessibility
    • Internationalization
    • Information hierarchy
    • Speed
  • Design

    • Visual principles
    • Colors
    • Space
    • Icons
    • Typography
  • Design tokens
  • Style helpers
  • Content

    • Express your ideas
    • Actionable language
    • Inclusive and accessible language
    • Alternative text
    • Grammar and mechanics
      • Basics
      • Capitalization
      • Dates and units of measurement
      • Punctuation
  • Components

    • Alert
    • Avatar
    • Badge
    • Button
    • Button group
    • Checkbox
    • Date Input
      • dates
      • datetimes
      • ranges
      • date range
    • Field group
    • File dropzone
    • File upload
    • Flex
    • Grid
    • Icon
    • Image
    • Input
    • Input errors
    • Loader
    • Modal
    • Month picker
    • Multistep
      • multistep
      • step
    • Pagination
    • Popper
    • Radio
    • Repeater
    • Select
    • Tabs
    • Tile
    • Toast
    • Toggle
  • Directives

    • Click outside
    • Tooltip

File dropzone

A drag and drop area for uploading files.

Usage

import { RFileDropzone } from '@rebilly/revel';

<r-file-dropzone v-model="files" accept="image/*" multiple />;

Examples

Single file upload

file-dropzone-single.vue

Multiple files upload

file-dropzone-multiple.vue

Gallery preview

file-dropzone-gallery.vue

With existing (uploaded) files

file-dropzone-with-uploaded-files.vue

File type and size restrictions

file-dropzone-restrictions.vue

Disabled

file-dropzone-disabled.vue

With slot

Use slot to create a custom dropzone content.

file-dropzone-with-slot.vue

Without image(s) preview

file-dropzone-without-preview.vue

API

Props

NameTypeDefaultDescription
modelValueunion, RevelFile, Array

Model value

multiplebooleanfalse

Allows the user to select more than one file

acceptstring''

String that defines the file format which the dropzone should accept (comma-separated e.g. "image/*,application/pdf,.docx")

disabledbooleanfalse

Disables the upload action

previewTypePreviewType'list'

Hides selected file preview

hidePreviewbooleanfalse

Hides selected file preview

maxFileSizeunion, number, undefinedundefined

Maximum file size in MB. Files larger than this will be omitted when dropped.

Slots

NameDescription
default

Events

NameDescription
update:modelValue
Edit this page
Last Updated: 6/16/26, 10:53 AM
Contributors: ikram-patah, Weetbix
Prev
Field group
Next
File upload