ErrorState
An error message with an accessible retry action.
Install
npx shadcn@latest add https://crate.onerollstudios.com/r/error.jsonPlayground
The connection dropped before the answer finished.
Callbacks (onRetry) are logged here when the component calls them.
<ErrorState
message="The connection dropped before the answer finished."
onRetry={() => {}}
/>Import
import { ErrorState } from "@/components/agent-wait-states/error-state";Props
| Prop | Type | Required | Default | Notes |
|---|---|---|---|---|
className | string | no | ||
accent | boolean | no | ||
labels | Partial<CrateLabels> | no | Replace any of this component's labels. Overrides CrateProvider. | |
message | string | no | ||
onRetry | (() => void) | no |
Labels
Override with the labels prop or a CrateProvider.
| Label | English default |
|---|---|
error | "Something went wrong." |
retry | "Retry" |
Example
<ErrorState message={error.message} onRetry={retry} />For coding agents: /llms/error.md, generated from the same source.