Compositions
Core Primitives
Transitions
Typography
Drag And Drop Flow
Cursor drags a file into a drop zone that lights up and starts a progress bar.
Customize
1
Installation
$ pnpm dlx shadcn@latest add @framecn/drag-and-drop-flow
Usage
import { DragAndDropFlow } from "@/components/framecn/drag-and-drop-flow";<DragAndDropFlow />API Reference
DragAndDropFlow
| Prop | Type | Default |
|---|---|---|
accent | string | "#0ea5e9" |
dropzoneLabel | string | "Drop file to upload" |
fileName | string | "design.fig" |
background | string | "#fafafa" |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 150 |
width | number | 1280 |
height | number | 720 |
className | string | - |
Notes
File upload workflow
A cursor drags a file into a drop zone that lights up and shows a progress bar. Great for file upload UI demos.