---
title: "Prompt template animated icon"
description: "Prompt template animated icon (AI · Conversation). A slot fills inside the brackets; Strong parts the brackets before the fill and closes them after"
canonical: https://generativeicons.com/icons/prompt-template/
---

# Prompt template animated icon

A slot fills inside the brackets; Strong parts the brackets before the fill and closes them after

- Id: `prompt-template`
- Category: AI · Conversation
- Search terms: placeholder, variable, template variable, fill in blanks, saved prompt, reusable prompt, prompt library, preset, snippet, slot, brackets
- 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/prompt-template.lottie (dotLottie, 7107 bytes, sha256 f074743d4153424b2c59b382b254d8b0c0cf4896b6092834ffbd71c008bf22aa)
- License: MIT

## Install

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

## React

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

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