---
title: "Find and replace animated icon"
description: "Find and replace animated icon (Text & document editing). The matched fragment kicks down out of the row and fades; the replacement drops into the same channel and lands as a longer bar. Reset retracts geometrically."
canonical: https://generativeicons.com/icons/find-and-replace/
---

# Find and replace animated icon

The matched fragment kicks down out of the row and fades; the replacement drops into the same channel and lands as a longer bar. Reset retracts geometrically.

- Id: `find-and-replace`
- Category: Text & document editing
- Search terms: search and replace, replace all, substitute, substitution, text substitution, swap text, ctrl h
- 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/find-and-replace.lottie (dotLottie, 7288 bytes, sha256 be20bd4f446751c902ed63a906cad247f0e56b0d5652328820c88693c149b779)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add find-and-replace
```

## React

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

export function FindAndReplaceIcon() {
  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/find-and-replace.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/find-and-replace/ · https://generativeicons.com/api/icons/find-and-replace
