Open a sub-component to view its docs and settings.
Copy this complete component into a page file. Edit and run it in the Playground.
Loading editor…
Reusable failure, warning, offline, forbidden, and not-found state. ErrorBoundary uses the same surface as its default fallback and resets when resetKeys change.
| Prop | Type | Default | Description |
|---|---|---|---|
status | "error" | "warning" | "offline" | "forbidden" | "not-found" | "error" | Selects the icon, tone, and default copy. |
title | string | status copy | Optional heading override. |
description | string | status copy | Optional supporting copy. |
code | string | — | Short status code such as 404 or 500. |
actions | ReactNode | — | Recovery actions. |
compact | boolean | false | Smaller inline variant. |
role="alert"; warnings use role="status".