Components
Error State
Inline error message with an optional retry action.
ErrorState presents a recoverable failure without exposing upstream details. The docs retry
button only increments a local counter; it does not call any API.
!
Something went wrong. Please try again.
string
With retry
Props
| Prop | Values | Notes |
|---|---|---|
message | string | User-facing error copy |
onRetry | callback | When present, renders the retry button |
Accessibility
The message is plain text in the reading order and the retry control is a native button, so it is reachable by keyboard and announced correctly.
Responsive behaviour
The centered column adapts to phone widths; both the message and button wrap rather than overflowing.
Usage
import ErrorState from '@/components/feedback/error-state';
<ErrorState message="Unable to load live rates." onRetry={reload} />