RemotionUI

Drag Drop Flow

Cursor drags a file out of a media library into a drop zone that arms, catches it, and uploads it.

SceneScenes

drag-drop-flow30fps · 960×540
Install
$ npx remotion-ui@latest add drag-drop-flow

The whole drag beat, not a card sliding into a box. The cursor travels into the media library, presses the file, and carries it across; the row it left holds its place as a dashed ghost; the drop zone arms while the file is held over it; and the release turns into a transfer that fills and completes.

Pass siblings to change the rest of the library, fileName/fileSize for the file itself, and speed to fit the beat into a fixed sequence.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/scenes/drag-drop-flow
  • Use when: full-frame scenes, overlays, cards, and reusable video sections.
  • Customize: fileName, fileSize, siblings, sourceLabel, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { DragDropFlow } from "@/remotion/scenes/drag-drop-flow"; <DragDropFlow fileName="hero-loop.tsx" />

API Reference

PropTypeDescription
fileNamestringFile the cursor picks up.
fileSizestringSize shown once the upload completes.
siblingsstring[]Other rows in the source list.
sourceLabelstringHeading on the source panel.
labelstringIdle prompt in the drop zone.
hintstringSecond line under the prompt.
activeLabelstringPrompt while the file is held over the zone.
doneLabelstringLabel once the upload finishes.
accentColorstringZone, cursor ring, and progress colour.
backgroundColorstringOverrides the page background.
theme"dark" | "light"Surface palette.
speednumberAnimation speed multiplier.

Related