ErrorLoader
Components
ErrorLoader()
ErrorLoader(
props
,context
?):ReactNode
An ErrorLoader serves the purpose of displaying an error card with an image and a messagge explaining to the user the error in detail.
Parameters
Parameter | Type |
---|---|
props | ErrorLoaderProps |
context ? | any |
Returns
ReactNode
Example
<ErrorLoader type="script-error" title="Error in akasha app" details={error.message} />
Source
libs/design-system-core/src/components/ErrorLoader/index.tsx:49
Props
ErrorLoaderProps
ErrorLoaderProps:
React.PropsWithChildren
<object
>
Type declaration
Member | Type | Description |
---|---|---|
customStyle | string | - |
details | React.ReactElement | string | Additional details about the error |
devDetails | React.ReactElement | string | Message to be shown when in deveolopment mode |
publicImgPath | string | - |
title | string | The error title |
type | "missing-feed-customization" | "missing-saved-items" | "missing-notifications" | "no-connection" | "no-apps" | "network-not-supported" | "no-login" | "script-error" | "not-registered" | Error type |
Source
libs/design-system-core/src/components/ErrorLoader/index.tsx:4