Skip to content

components/LoadError

import { … } from 'zidane-ui'ui/src/components/LoadError.tsx

Components#

LoadErrorComponent#

Renders a failed read's line in the danger colour, children first (Couldn't scan for plugins: …).

TypeScript
function LoadError(props: LoadErrorProps): Element
Parameters
NameTypeDescription
propsLoadErrorProps

Component props.

Element
LoadError props
NameTypeDescription
childrenReactNode

The line: what could not be read and why.

className?string

Spacing from the surroundings.

onRetry?() => void

Reads again; absent, no Retry.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

ui/src/components/LoadError.tsx:26

Interfaces#

LoadErrorPropsInterface#

Props for LoadError.

TypeScript
interface LoadErrorProps
LoadErrorProps properties
NameTypeDescription
childrenReactNode

The line: what could not be read and why.

className?string

Spacing from the surroundings.

onRetry?() => void

Reads again; absent, no Retry.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

ui/src/components/LoadError.tsx:10