Component packs › Vouch › Error Summary

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.

Error Summary 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: linked errors, latches close as you fix, panel folds away.

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.

Error Summary props

PropTypeDefaultDescription
submitLabelstring
onSubmit(values: Record<string, string>) => void
autoplaynumber | falseShowcase mode: submits empty, then fixes fields one by one, every N ms while visible.

Methods on the ref

Use it in React

import ErrorSummary from './ErrorSummary';

<ErrorSummary />

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

More in Vouch

Good for: Form validation.