Jump to a page or a component.
Catches render errors so one broken widget doesn't take the view.
Rendering normally.
No install — ask an AI agent to copy this component from registry.json.
import { ErrorBoundary } from "@/components/ui/error-boundary";${testId}-error-fallback and ${testId}-retry-button.The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.
| Prop | Type | Default | Description |
|---|---|---|---|
| fallback | (error, reset) => ReactNode | — | Full replacement for the default UI. When given, message / retryLabel / className are unused. |
| resetKeys | unknown[] | — | Values that, when changed, clear the error. |
| onError | (error, info) => void | — | Side effect on catch — logging or telemetry. |
| message | string | "Something went wrong rendering this view." | Copy for the default fallback. |
| retryLabel | string | "Retry" | Label for the default fallback's retry button. |