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 titleText and bodyText.

Sample error title

Sample error description

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

Props

ErrorState

extends EmptyStateProps
*required
NameTypeDefaultDescription
bodyTextReact.ReactNodeA description of the error, if no body text is provided then it will be set to the defaultBodyText.
customFooterReact.ReactNodeCustom footer content
defaultBodyTextReact.ReactNodeA default description of the error used if no errorDescription is provided.
ouiaIdstring | number"ErrorState"ErrorState OUIA ID
titleTextstring'Something went wrong'Title of the error.