motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. File Upload
  5. Drop Zone Upload
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

File Upload

Drop Zone Upload

A drag and drop area with marching dashes and a file list with animated progress bars.

npx motionsnack add drop-zone-upload

Customize

MB
<DropZoneUpload />

Props

35 properties

PropertyTypeDefaultDescription
valueUploadFile[]-Files in the list. With a value the component is controlled.
defaultValueUploadFile[]2 demo filesFiles in the list at the start when uncontrolled. UploadFile = { id, name, size (bytes), type, url?, progress?, status?, error? }.
onChange(files: UploadFile[]) => void-Called with the new list after files are added, removed or change status.
onUpload(file: File, onProgress: (progress: number) => void) => Promise<void>-Uploads one file. Without it added files count as done.
namestring-Field name of the native file input.
idstringuseId()Id of the native file input; label, helper and error ids derive from it.
labelsDropZoneUploadLabelsEnglishRow button names, statuses, rejection messages and announcements.
localestring'en-US'BCP 47 locale of file sizes and percentages.
errorColorstringundefinedError colour on both themes. Undefined uses the per-theme pair.
successColorstringundefinedSuccess colour on both themes. Undefined uses the per-theme pair.
defaultFiles{ name: string; sizeMb: number }[]-Deprecated alias of defaultValue.
onFiles(files: File[]) => void-Deprecated: use onChange. Still called with the accepted files.
onRemove(name: string) => void-Deprecated: use onChange. Still called with the removed file's name.
doneLabelstring-Deprecated: use labels.uploaded.
uploadingLabelstring-Deprecated, ignored.
accentstring-Deprecated, ignored: the zone edge is the functional border.
accentTostring-Deprecated, ignored.
radiusnumber-Deprecated, ignored: the zone is radius 12.
uploadSecondsnumber-Deprecated, ignored: pass onUpload for real progress.
dashSpeednumber-Deprecated, ignored: the edge is solid.
tintnumber-Deprecated, ignored.
classNamestring''Extra classes on the root.
labelstring'Attachments'Visible label above the zone. Empty hides it.
helperTextstring''Helper text under the zone. Empty hides it.
errorstring''Error message: colours the zone edge and replaces the helper.
titlestring'Drop files here'Title inside the zone.
dragTitlestring'Drop to add them'Title while a file is held over the zone.
hintstring'Up to 4 files, 10 MB each.'Hint under the title: types and size.
browseLabelstring'Browse files'Label of the button that opens the file picker.
acceptstring''Accepted types, as in the native attribute: ".pdf,image/*". Empty accepts everything.
maxFilesnumber4Most files the list can hold. 0 means no limit.
maxSizeMbnumber10Largest size of one file (base 10). 0 means no limit.
multiplebooleantrueAllow several files at once.
requiredbooleanfalseA file is required.
disabledbooleanfalseBlocks the zone, the picker and drops.

About Drop Zone Upload

Drop Zone Upload is a dashed drop area with a browse button and a list of the files you add. While a file is held over it, the dashes of the border start marching, an accent tint rises from the bottom edge and the upload icon lifts on a spring. Dropped or picked files slide into the list, each with its size, a progress bar that fills on a timer and a check that pops in when it finishes. Rows collapse smoothly when you remove them. The accept, maxFiles and maxSizeMb props filter what gets in and a short notice says what was skipped. Nothing is uploaded anywhere: onFiles hands you the accepted files to send yourself.

What's included

  • Dashed border that marches while a file is dragged over
  • Accent tint and spring-lifted icon on drag
  • File rows that slide in and collapse on remove
  • Simulated, timer-driven progress bar with a finish check
  • accept, maxFiles and maxSizeMb checks with a skipped notice
  • onFiles and onRemove callbacks, no network calls
  • Keyboard friendly browse and remove buttons
Type
Animated React file upload component
Library
Components · File Upload
Stack
Next.js, React, Tailwind CSS
Added
2026-09-20
Install
npx motionsnack add drop-zone-upload