Skip to main content
Pricing

Error Summary

Pro

A consolidated list of all validation errors for a form, displayed at the top of the form after submission fails. Each error is an anchor link that jumps focus to the offending field. The component receives focus automatically when it appears, ensuring screen reader users are immediately aware of the issues. Always rendered as a landmark with role="alert" so assistive technology announces it.

4 variants

3 errors found
Email address is required
Password must be at least 8 characters
Please accept the terms

Variants

VariantDescriptionWhen to use
DefaultStandard error summary with a heading, error count, and linked error list.Use at the top of any form that validates on submit and has one or more validation errors.
With Links

Usage Guidelines

Do

Place at the top of the form, before any fields.

Don't

Use as a standalone error display without linking to the offending fields.

Do

Link each error message to its corresponding field using anchor hrefs.

Don't

Hide the error summary when the user starts correcting individual fields — only remove resolved items.

Do

Focus the error summary container when it first appears after a failed submission.

Don't

Place at the bottom of the form where it may not be visible.

Do

Include the total error count in the heading — "There are 3 errors in this form".

Don't

Code

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Design Tokens

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Accessibility

  • Uses role="alert" to announce the error summary immediately when it appears.
  • The container has tabindex="-1" and receives programmatic focus on render.
  • Each error item is an anchor link (<a>) that moves focus to the corresponding form field.
  • Include the error count in the heading for screen readers — "There are 3 errors in this form".
  • When an error is resolved, remove it from the list and update the count.

Keyboard Interactions

TabMoves focus through each error link in the list.
EnterFollows the error link and focuses the corresponding form field.