# @askrjs/askr/components

> Published API exports for @askrjs/askr/components.

Source: [https://askrjs.com/docs/reference/api/askr/components](https://askrjs.com/docs/reference/api/askr/components)

Status: stable. Packages: @askrjs/askr/components.

**Published packages are authoritative.** Examples may lag behind a published contract. When guidance differs, verify the exports and TypeScript declarations in your installed package, then file an issue.

## Exports

This entrypoint publishes 3 exports from the declarations shipped by @askrjs/askr.

### `ErrorBoundary`

```ts
ErrorBoundary: (props: ErrorBoundaryProps) => JSXElement
```

Creates a boundary for descendant mount and post-mount render/commit errors,
including content materialized through a portal host.

### `ErrorBoundaryFallbackRender`

```ts
ErrorBoundaryFallbackRender: (error: unknown, reset: () => void) => ErrorBoundaryFallbackValue
```

Renders a fallback for the caught error; call `reset` to retry the children.

### `ErrorBoundaryProps`

```ts
ErrorBoundaryProps: any
```

Props for {@link ErrorBoundary}.

- `children`: Optional children slot

- `fallback`: Static fallback content, or a render function receiving the error and a reset callback.

- `key`: Optional key for keyed lists (string | number | symbol for internal frames)

- `onError`: Called with the caught error when the boundary trips.

- `resetKey`: Changing this value resets the boundary, re-rendering the children.

## Documentation navigation

[Previous](https://askrjs.com/docs/reference/api/askr/boot/index.md) | [Next](https://askrjs.com/docs/reference/api/askr/control/index.md)
