Use an error summary at the top of a page to summarise errors made by the user.
An error details component should be used alongside this to show where the errors have been made.
How to use this component
When using this component, make sure you are following the correct errors pattern.
You should not typically need to call the
onsError() macro yourself as it is already called from within form input components, and can be set using the error object.
|The text describing the error
id attribute that the error summary link can anchor to
|HTML attributes (for example, data attributes) to add to the field