---
title: "Error animated icon"
description: "Error animated icon (Feedback & status). A rigid exclamation stem strikes downward; the dot receives the contact and settles."
canonical: https://generativeicons.lottiefiles.com/icons/error/
---

# Error animated icon

A rigid exclamation stem strikes downward; the dot receives the contact and settles.

- Id: `error`
- Category: Feedback & status
- Search terms: failed, failure, problem, issue, exclamation mark, critical, fault, invalid, something went wrong, oops, crash
- One action, back to rest
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.lottiefiles.com/assets/error.lottie (dotLottie, 9529 bytes, sha256 795042f67f4233369f7dd31d34b8cd51785c64dda0d9e7896c7b17b728b1563f)
- License: MIT

## Install

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

## React

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

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