Component packs › Vouch › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
submitLabel | string | ||
onSubmit | (values: Record<string, string>) => void | ||
autoplay | number | false | Showcase mode: submits empty, then fixes fields one by one, every N ms while visible. |
readonly errors: numberdestroy(): voidimport ErrorSummary from './ErrorSummary';
<ErrorSummary />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form validation.