---
title: "Edit animated icon"
description: "Edit animated icon (Actions). The pencil lifts, lands, drives the ink stroke quickly, then lifts with follow-through; the written mark stays."
canonical: https://generativeicons.com/icons/edit/
---

# Edit animated icon

The pencil lifts, lands, drives the ink stroke quickly, then lifts with follow-through; the written mark stays.

- Id: `edit`
- Category: Actions
- Search terms: modify, change, write, pencil, pen, revise, edit mode, make changes, compose
- 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/edit.lottie (dotLottie, 6917 bytes, sha256 8cea21b92a7aee46316b14005e375f8befbb6c4910935d93de68b2384381e774)
- License: MIT

## Install

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

## React

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

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