Skip to main content
Elastic UI
Elastic UI
ComponentsPatternsContentData visualization
EUI ChangelogGitHubFigma
  • Introduction
  • Confirmation prompts
  • Elastic AI Assistant
  • Error messages
    • Error banner
    • Error examples
    • Help users avoid errors
    • Error page
    • Validation errors
    • Error warning
    • How to write good error messages
  • Help content
  • Pre-GA badges
  • Save buttons
  • Tables
    • Table Pagination for basic tables
    • Table Selection on basic tables
  • EUI
  • Error messages
  • Error banner

Error banner

description: Use an error banner when something’s gone wrong, but it’s still possible to show the user the page they expected to see.

A red banner which reads, we could not save your data to AWS. AWS took too long to respond. It might just be busy. Wait 1 minute and try again. If this keeps happening, contact your administrator: admin@example.co.

When to use this pattern

Use an error banner when something’s gone wrong, but it’s still possible to show the user the page they expected to see.

When not to use this pattern

Do not use an error banner to display a warning about an unrelated error, instead use the

error warning pattern.

Do not use an error banner for validating information the user has entered, instead use the validation errors pattern.

Do not use an error banner when you're unable to show the page the user was expecting, instead use the error page pattern.

How it works

Error banners must be highly visible. Use the EuiCallout component, and the props:

  • color="danger"
  • iconType="alert"

Use the title prop to explain the problem.

Use paragraphs to explain the cause and the recommendation.

Use a button if there is an obvious action the user can take, like ‘try again’.

Help improve this pattern

To help make sure that this page is useful, relevant and up to date, you can join our #ux‑wg‑patterns discussions on Slack.

Edit this page

Previous
Error messages
Next
Error examples
  • When to use this pattern
  • When not to use this pattern
  • How it works
  • Help improve this pattern
EUI is dual-licensed under Elastic License 2.0 and Server Side Public License, v 1 | Crafted with ❤ by Elastic