PatternFly

Error state

The error state component repurposes the EmptyState component to display an error to users. To further customize this component, you can also utilize all properties of the empty state component, with the exception of children.

Examples

Basic error state

To provide users with error details, a basic error state should contain an appropriate and informative errorTitle and errorDescription.

Sample error title

Sample error description

To override the default action button, specify your own using customFooter.

Props

ErrorState

*required
NameTypeDefaultDescription
customFooterReact.ReactNodeCustom footer content
defaultErrorDescriptionReact.ReactNodeA default description of the error used if no errorDescription is provided.
errorDescriptionReact.ReactNodeA description of the error, if no description is provided then it will be set to the defaultErrorDescription.
errorTitlestring'Something went wrong'Title of the error.
ouiaIdstring | number"ErrorState"ErrorState OUIA ID

View source on GitHub

We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.