Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA summary of every error in a form: it takes focus after a failed submit, and each message is a link that moves focus to the field that needs fixing.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Each id is the id of the control, or of a fieldset / group wrapper: focus goes to the first control inside it.
| Prop | Type | Description |
|---|---|---|
errors | { id: string; message: string }[] | One entry per problem. Write messages that say what to do. |
title | ReactNode | Default "There is a problem". |
focusSignal | number | Increase it after a failed submit to focus the summary. |
role="alert" region named by its heading and focusable (tabindex="-1"), so focus lands on it and a screen reader reads the title, the count and the list.prefers-reduced-motion.aria-invalid and a message next to it: the summary is a way in, not a replacement for field-level errors.The component ships with a Testing Library test (form-error-summary.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.