ErrorState 📌

Display an error message. Used by UIs when an exception is caught, and an error message needs to be displayed. If in development mode, the actual error is displayed, otherwise displays a generic message in production mode.

System Component 📌

This component is shipped with BlueBase Core.

Usage

import { ErrorState } from '@bluebase/core';

// Then somewhere in your app:
<ErrorState retry={retryCallback} error={Error('Bang!')} />

Properties

prop

type

required

default

description

error

Error

no

-

The error to display

retry

Function

no

-

Callback function, called when retry button is pressed.

testID

string

no

-

Used to locate this view in end-to-end tests.

Last updated