BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/framecn/drag-and-drop-flow

Drag and Drop Flow

framecn/drag-and-drop-flow
FreeComponent

Simulated file drag into a dropzone followed by upload progress.

Install it

npx shadcn@latest add https://framecn.dev/r/drag-and-drop-flow.json

Source

registry/bases/editframe/components/drag-and-drop-flow/index.tsxframecn.dev/r/drag-and-drop-flow.json
1"use client";
2
3import { Timegroup } from "@editframe/react";
4import type { CSSProperties } from "react";
5
6const FileIcon = ({ color }: { color: string }) => (
7 <svg width="44" height="56" viewBox="0 0 44 56" fill="none">
8 <path
9 d="M6 4a4 4 0 014-4h18l12 12v40a4 4 0 01-4 4H10a4 4 0 01-4-4V4z"
10 fill="white"
11 stroke={color}
12 strokeWidth="2"
13 />
14 <path
15 d="M28 0v8a4 4 0 004 4h8"
16 stroke={color}
17 strokeWidth="2"
18 fill="none"
19 />
20 <rect
21 x="12"
22 y="22"
23 width="20"
24 height="2"
25 rx="1"
26 fill={color}
27 opacity="0.5"
28 />
29 <rect
30 x="12"
31 y="28"
32 width="16"
33 height="2"
34 rx="1"
35 fill={color}
36 opacity="0.5"
37 />
38 <rect
39 x="12"
40 y="34"
41 width="18"
42 height="2"
43 rx="1"
44 fill={color}
45 opacity="0.5"
46 />
47 </svg>
48);
49
50export interface DragAndDropFlowProps {
51 accent?: string;
52 dropzoneLabel?: string;
53 fileName?: string;
54 background?: string;
55 speed?: number;
56 fps?: number;
57 durationInFrames?: number;
58 width?: number;
59 height?: number;
60 className?: string;
61}
62
63export const DragAndDropFlow = ({
64 accent = "#0ea5e9",
65 dropzoneLabel = "Drop file to upload",
66 fileName = "design.fig",
67 background = "#fafafa",
68 speed = 1,
69 fps = 30,
70 durationInFrames = 150,
71 width = 1280,
72 height = 720,
73 className,
74}: DragAndDropFlowProps) => {
75 const safeSpeed = Math.max(0.01, speed);
76 const durationMs = (durationInFrames / fps) * 1000;
77 const frameMs = 1000 / fps;
78
79 const dragEndMs = (durationInFrames * 0.45 * frameMs) / safeSpeed;
80 const highlightEndMs = (durationInFrames * 0.55 * frameMs) / safeSpeed;
81 const progressEndMs = (durationInFrames * frameMs) / safeSpeed;
82
83 const containerStyle: CSSProperties = {
84 alignItems: "center",
85 background,
86 display: "flex",
87 fontFamily:
88 "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",
89 height,
90 justifyContent: "center",
91 overflow: "hidden",
92 position: "relative",
93 width,
94 };
95
96 const dropzoneWidth = 420;
97 const dropzoneHeight = 260;
98
99 return (
100 <Timegroup
101 className={className}
102 duration={`${durationMs}ms`}
103 mode="fixed"
104 style={containerStyle}
105 >
106 <>
107 <style>{`
108 @keyframes framecn-drag-file {
109 from { transform: translate(-220px, -120px); opacity: 0; }
110 to { transform: translate(0, 0); opacity: 1; }
111 }
112// … truncated

What it pulls in

npm packages

  • remotion

Files it writes

  • registry/bases/editframe/components/drag-and-drop-flow/index.tsx

Facts

Registry
framecn
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

framecn.dev shadcn-labs/framecn on GitHub Raw registry item This item as JSON

More from framecn

All 101 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AI Generate Overlayai-generate-overlayframecnComponentsFree1 dep
AI Generation Canvasai-generation-canvasframecnComponentsFree1 dep
Animated Bar Chartanimated-bar-chartframecnComponentsFree1 dep
Animated Line Chartanimated-line-chartframecnComponentsFree1 dep
BackdropbackdropframecnComponentsFree1 dep
Blur Out Upblur-out-upframecnComponentsFree1 dep
Blur Revealblur-revealframecnComponentsFree1 dep
Bounding Box Selectorbounding-box-selectorframecnComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex