---
title: "Autocomplete animated icon"
description: "Autocomplete animated icon (AI · Conversation). The ghost suggestion clears, then the typed text and caret advance together to accept it"
canonical: https://generativeicons.com/icons/autocomplete/
---

# Autocomplete animated icon

The ghost suggestion clears, then the typed text and caret advance together to accept it

- Id: `autocomplete`
- Category: AI · Conversation
- Search terms: auto complete, inline suggestion, ghost text, predictive text, tab to accept, typeahead, type ahead, autosuggest, code completion, smart compose, completion, accept suggestion
- 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/autocomplete.lottie (dotLottie, 8307 bytes, sha256 abc3ed86ef26d4ee3e80f6b29e9ead3936b0d35a0fb4c8f67e2c6634e81b4e83)
- License: MIT

## Install

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

## React

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

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