Component packs › Vouch › Live Validation

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.

Live Validation props

PropTypeDefaultDescription
submitLabelstring
onSubmit(values: LiveValidationValues) => void
autoplaynumber | falseShowcase mode: fills the form in by itself every N ms while visible.

Methods on the ref

Use it in React

import LiveValidation from './LiveValidation';

<LiveValidation />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Vouch

Good for: Form validation.