# components/LoadError (zidane-ui)

Import: `import { … } from 'zidane-ui'`. Source: [ui/src/components/LoadError.tsx](https://github.com/Tahul/zidane/blob/main/ui/src/components/LoadError.tsx).

## Components

### `LoadError`

Component.

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

```ts
function LoadError(props: LoadErrorProps): Element
```

**Parameters**

- `props` (`LoadErrorProps`): Component props.

**Returns** `Element`

**Props**

- `children` (`ReactNode`): 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.

Source: [ui/src/components/LoadError.tsx:26](https://github.com/Tahul/zidane/blob/main/ui/src/components/LoadError.tsx#L26)

## Interfaces

### `LoadErrorProps`

Interface.

Props for [`LoadError`](https://zidane.si/docs/reference/ui-components-load-error.md#LoadError).

```ts
interface LoadErrorProps
```

**Properties**

- `children` (`ReactNode`): 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.

Source: [ui/src/components/LoadError.tsx:10](https://github.com/Tahul/zidane/blob/main/ui/src/components/LoadError.tsx#L10)
