Error states occur when the app fails to complete an expected action. This can happen due to system failure or user error. It's important to communicate error states to the user, especially on user error, so they can resolve the issue.
If the error affects the entire page on load, such as a server error, use the universal message paradigm at the top of the page, nearest to the content that is affected. Read more about Universal Messaging.
If an error affects the entire page, but doesn't cause the page to reload, use a toast. Read more about Toasts.
Try out various errors described above in the form below to better understand the requirements.
Read more about Form Elements.
If an error only affects part of the page, such as a status message or user error, use an inline message style. We have two versions of this style, one with an icon and one without. The icon can appear next to the error text or to the part of the page that is affected.