---
title: "Character count animated icon"
description: "Character count animated icon (Forms & input). A text field counts characters toward its limit. Light: more text is typed into the field and the counter ring beside it fills in step with it, from a third of the way round to most of the way, and stops dead. Strong: the text is typed in two quick bursts, the ring clicks forward with each, and it pops once as it nears the limit. The count never overshoots; the reverse deletes the text and the ring empties back."
canonical: https://generativeicons.com/icons/character-count/
---

# Character count animated icon

A text field counts characters toward its limit. Light: more text is typed into the field and the counter ring beside it fills in step with it, from a third of the way round to most of the way, and stops dead. Strong: the text is typed in two quick bursts, the ring clicks forward with each, and it pops once as it nears the limit. The count never overshoots; the reverse deletes the text and the ring empties back.

- Id: `character-count`
- Category: Forms & input
- Search terms: character limit, char count, char limit, word count, max length, maxlength, characters left, characters remaining, text length, letter count
- Two states: short-text to long-text, 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/character-count.lottie (dotLottie, 7950 bytes, sha256 c6df12f33b10b27fa53509640eb97dc23b316b3bdab41ca2e192c2af8e60bddd)
- License: MIT

## Install

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

## React

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

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