# Drag And Drop Flow

Cursor drags a file into a drop zone that lights up and starts a progress bar.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/drag-and-drop-flow
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { DragAndDropFlow } from "@/components/framecn/drag-and-drop-flow";
```

```tsx
<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

  A cursor drags a file into a drop zone that lights up and shows a progress
  bar. Great for file upload UI demos.