---
title: "Field error animated icon"
description: "Field error animated icon (Forms & input). A form field rejects its value. Light: the exclamation mark beside the field strikes down onto its dot, and a beat later the field shakes its head: it jolts left, swings back right and settles, carrying the typed value with it. Strong: the stem lifts first and strikes harder, the dot is knocked down and rebounds, and the field shakes three times, each smaller. The exclamation stays beside the field."
canonical: https://generativeicons.com/icons/field-error/
---

# Field error animated icon

A form field rejects its value. Light: the exclamation mark beside the field strikes down onto its dot, and a beat later the field shakes its head: it jolts left, swings back right and settles, carrying the typed value with it. Strong: the stem lifts first and strikes harder, the dot is knocked down and rebounds, and the field shakes three times, each smaller. The exclamation stays beside the field.

- Id: `field-error`
- Category: Forms & input
- Search terms: invalid, invalid input, validation error, form error, input error, wrong value, incorrect entry, validation, fix field
- 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.com/assets/field-error.lottie (dotLottie, 3371 bytes, sha256 ba8368224dfdefb30078b5275c863f8586254634bd68031b4aea0d7ccf7dea2a)
- License: MIT

## Install

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

## React

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

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