File Upload

Drag-and-drop file upload with preview, validation, and multiple file support.

Basic File Upload

Single file upload with drag and drop

Drop files here or click to upload

Max 10.0 MB per file • Up to 1 files

Inline Variant

Input field style with browse button

Choose a file...
Select files...

Multiple Files

Upload multiple files at once

Drop files here or click to upload

Max 5.0 MB per file • Up to 5 files

Custom Settings

Custom file size and count limits

Drop files here or click to upload

Max 2.0 MB per file • Up to 3 files

Disabled State

File upload in disabled state

Drop files here or click to upload

Max 10.0 MB per file • Up to 5 files

API Reference

Props and usage details

PropTypeDefaultDescription
onChange(files: File[]) => void-Callback when files are added/removed
labelstring-Label text above the upload area
acceptstring"*"Accepted file types
multiplebooleanfalseAllow multiple file selection
maxSizenumber10485760Maximum file size in bytes (10MB)
maxFilesnumber5Maximum number of files
disabledbooleanfalseWhether the upload is disabled

Features

  • Drag and drop support
  • File type filtering
  • File size validation
  • Image preview thumbnails
  • Individual file removal
  • Error messages for validation failures
  • Full design system token support
  • Dark mode support