design-infraGitHub
Report a problem or share feedback← Catalog

Characters remaining

curatedfree

motion/characters-remaining

An example of creating a character counter with spring animations in Motion for React

state — subtlerecipeRefinedPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-characters-remaining

npm deps: motion

Our notes

Character counter that animates as you type and warns near the limit — input feedback done right. Free example (motion is MIT); copy and adapt the source from the example page.
Characters remaining preview
Source
Motion (motion.dev)
Kind
transition
Categories
transition, stats
Use as
recipe — technique you apply to your own markup
Applies to
inputform
Motion
on state · subtle · motion · low cost
Tags
motion, useAnimate
Licence
motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
Live demo
motion.dev
Docs
motion.dev