---
title: "Rewrite animated icon"
description: "Rewrite animated icon (AI · Conversation). Text erases and retypes longer; Strong first withdraws and redraws the rewrite arrow before typing in two passes"
canonical: https://generativeicons.com/icons/rewrite/
---

# Rewrite animated icon

Text erases and retypes longer; Strong first withdraws and redraws the rewrite arrow before typing in two passes

- Id: `rewrite`
- Category: AI · Conversation
- Search terms: rephrase, paraphrase, reword, revise, improve writing, polish text, expand text, edit with ai, redraft, re-write
- 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/rewrite.lottie (dotLottie, 8938 bytes, sha256 b8a47182c428ecfbb5960b6ba119c8a5ac2206df113d3128c6b550fef6275cbd)
- License: MIT

## Install

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

## React

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

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