---
title: "Search clear animated icon"
description: "Search clear animated icon (Search & discovery). Light: the clear cross presses and the text run wipes out of the field from the right. Strong: a hard press, the field jolts and the text vanishes in 0.16 s. Reverse types the text back in."
canonical: https://generativeicons.com/icons/search-clear/
---

# Search clear animated icon

Light: the clear cross presses and the text run wipes out of the field from the right. Strong: a hard press, the field jolts and the text vanishes in 0.16 s. Reverse types the text back in.

- Id: `search-clear`
- Category: Search & discovery
- Search terms: clear query, reset search, erase query, clear text, clear input, clear field, remove query, empty search, cancel search, delete query
- Two states: Typed to Cleared, 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/search-clear.lottie (dotLottie, 8194 bytes, sha256 e3c9e562d02de67f9b98d2494415d5ee7d028c517726d5b0a936bc9bd3a36e60)
- License: MIT

## Install

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

## React

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

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