Error messages - smbc-digital/patterns GitHub Wiki

Error messages

Use an error message to identify when the user has not provided the information in the format you are expecting. To help the user, you should show an error message that allows them to fix the problem.

If there are error message examples, they will be provided on the pattern page within this GitHub Pattern library. Check the pattern page first for an example error message, if provided. If there are no examples, then check the GOV.UK Design System - Error message page for guidance on writing error messages.

You can also check the individual components on the GOV.UK Design System - components page and the individual patterns on the GOV.UK Design System - patterns page for examples. You'll have to scroll down the page to the example error messages.

Use the examples in the GOV.UK Design System, but if you need further help with writing an error message where you can't find an example, then speak to someone in the Content and UX team for help.