Validate

✓
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-validate

About this component

A right-side icon morphs between states: invisible on idle, a checkmark springs in on valid email format, an X shakes in on invalid submission attempt.

Triggers

  • Focus
  • State change

Techniques

  • Transform only
  • Keyframes

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Error state communicated via aria-invalid and visible text.

Reduced motion

Icon shake removed under prefers-reduced-motion.

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

More inputs

See all
WobbleGet code

5 of 8 · it heats while you type, Enter brands it

Branding ironGet code

7 of 14 · Enter boxes it

Candy heartGet code

5 of 20 · sets in 8 s · Enter pours a new slab

Wet cementGet code