Count

0/40
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-count

About this component

A character counter and progress bar slide in below the input on first focus or keystroke. The counter and bar color shift from dim → light gray → white as the character limit approaches. Both slide away again when the field is empty and blurred.

Triggers

  • Focus
  • State change

Techniques

  • Transform only

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Counter is always in the DOM (opacity 0 when hidden) so screen readers can announce it.

Reduced motion

Under reduced motion, skip the slide-in transform.

Use it in anything you build, commercial and client work included. Licence

More inputs

See all
80
Count RingGet code
ElectricGet code