Checkpoint

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-checkpoint

About this component

An email field drawn as a sci-fi readout: a thin cyan frame with corner brackets, a ruler along its foot and a block cursor blinking at the start. When you leave the field a scan line sweeps it, then the frame turns green and draws a tick for a valid address, or turns red, shakes and shows a warning mark for a bad one.

Triggers

  • Focus
  • State change
  • Draw
  • Border
  • Keyframe
  • Glow

Techniques

  • Keyframes
  • CSS variables
  • stroke-dashoffset
  • SVG stroke
  • CSS transition
  • State machine

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native email input inside a <label>, named by aria-label ("Email"), that carries aria-invalid when the address is wrong; the result is also announced in words ("Valid email" or "Enter a valid email") by a visually hidden role="status" element, so it is never colour alone. Focus is shown by a ring and glow on the frame.

Reduced motion

Every transition and animation is switched off.

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

More inputs

See all
ClayGet code
DecoGet code
DelftGet code
DraftGet code