Form validation where every rule is a latch that clicks shut.
Six form validation components where every rule is a small steel draw latch: when the rule is met the lever swings over centre, snaps onto its keeper with one bounce and shows the pack colour in its indicator window; break the rule and it springs open. The submit button carries a padlock whose shackle pops open only when every latch is shut. Live Validation checks a sign-up form as you type and shows errors once you leave a field. Password Rules gives each rule its own latch. Username Check jiggles the latch while availability is checked and offers free alternatives. Error Summary lists every problem with a link to its field and folds away as the last latch shuts. Success Morph draws the button in to a steel plate and seals it with a latch when your action resolves. Inline Hint hangs a paper tag under a date field that swings to each new hint. Light and dark pages, labels, live regions and aria-invalid wired up, reduced motion, zero dependencies.
Type: Component packs. Price: $2. Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). Tags: form validation UI React, password strength, username availability check, error summary, submit button animation, inline form hint, sign up form, micro interaction.
What is inside (6 validation components)
Live Validation: Each field’s steel latch snaps shut the moment its value is valid, and the padlock on the button pops open when all three are shut.
Password Rules: Every password rule is a latch on its own row that clicks shut as you type; the padlock opens when all five are met.
Username Check: The latch jiggles while availability is checked, then snaps shut on a free name or springs open with one-tap free alternatives.
Error Summary: Submit with mistakes and every problem gets an open latch and a link to its field; each latch shuts as you fix it and the panel folds away.
Success Morph: The button draws in to a round steel plate while your action runs, a latch inside snaps shut, then it opens out into “Request sent”.
Inline Hint: A paper tag hangs from the date field on a string and swings to every new hint; when the date is real it turns green and reads it back in words.