---
title: "Drag and drop animated icon"
description: "Drag and drop animated icon (Files & transfers). The card lifts, glides right and drops into the tray; Strong picks up sharply, flies straight in and lands with one damped settle."
canonical: https://generativeicons.com/icons/drag-and-drop/
---

# Drag and drop animated icon

The card lifts, glides right and drops into the tray; Strong picks up sharply, flies straight in and lands with one damped settle.

- Id: `drag-and-drop`
- Category: Files & transfers
- Search terms: dropzone, drop zone, drop target, drop area, drop file here, drag to upload, file drop, move card, pick and place, dnd
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/drag-and-drop.lottie (dotLottie, 6535 bytes, sha256 163dcbafd03e8b92a2c3004dc9ae2de4742cc859dee02ca8a40f79add33c16b6)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add drag-and-drop
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/drag-and-drop.mjs';

export function DragAndDropIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/drag-and-drop.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/drag-and-drop/ · https://generativeicons.com/api/icons/drag-and-drop
