---
title: "Context attach animated icon"
description: "Context attach animated icon (AI · Knowledge). A pushpin drops onto a note card and the attached context writes."
canonical: https://generativeicons.lottiefiles.com/icons/context-attach/
---

# Context attach animated icon

A pushpin drops onto a note card and the attached context writes.

- Id: `context-attach`
- Category: AI · Knowledge
- Search terms: add context, add to context, provide context, pushpin, pin note, pin to prompt, include file, reference material, add source, extra context
- 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.lottiefiles.com/assets/context-attach.lottie (dotLottie, 7211 bytes, sha256 1eca346743e10df6669d21d6d334824f6de54bb037d95c728ea067544b473619)
- License: MIT

## Install

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

## React

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

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