Component packs › Vouch › 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.
Live Validation is a form from Vouch, a component pack with 6 validation components: Form validation where every rule is a latch that clicks shut. Price: $2 for the whole pack.
Built with: over-centre latch, errors after blur, padlocked submit.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
submitLabel | string | ||
onSubmit | (values: LiveValidationValues) => void | ||
autoplay | number | false | Showcase mode: fills the form in by itself every N ms while visible. |
readonly valid: booleanreset(): voiddestroy(): voidimport LiveValidation from './LiveValidation';
<LiveValidation />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form validation.