---
title: "Attach file animated icon"
description: "Attach file animated icon (Files & transfers). The clip bites onto the sheet. Light: the clip drops in through the sheet's open top and drives into it; the sheet takes the knock, squashing down from the top as the clip rides it, then springs back and the clip settles seated, where it stays. Strong: the clip lifts first, drives in harder, and the sheet squashes deeper and settles in two beats. The preview reset fades it back to the prepared clip."
canonical: https://generativeicons.com/icons/attach-file/
---

# Attach file animated icon

The clip bites onto the sheet. Light: the clip drops in through the sheet's open top and drives into it; the sheet takes the knock, squashing down from the top as the clip rides it, then springs back and the clip settles seated, where it stays. Strong: the clip lifts first, drives in harder, and the sheet squashes deeper and settles in two beats. The preview reset fades it back to the prepared clip.

- Id: `attach-file`
- Category: Files & transfers
- Search terms: paperclip, paper clip, attachment, attachments, add attachment, attach document, enclosure
- 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/attach-file.lottie (dotLottie, 5854 bytes, sha256 4fb435694a68dbc2b5641c0bac0f896e21e3f92840084bb6b71c640565509c54)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add attach-file
```

## React

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

export function AttachFileIcon() {
  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/attach-file.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/attach-file/ · https://generativeicons.com/api/icons/attach-file
