Feedback
Error State
Communicates retryable load failures, connection drops, or missing resources with destructive media, heading, description, and action slots.
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Canonical retry
Standard failure presentation with destructive icon, title, description, and primary retry action.
Composed recovery actions
Presents multiple recovery options arranged with responsive Grid layout.
Diagnostic details
Presents technical error identifiers and status codes using Badge and Code primitives.
Framed region
Compose an accessible error region inside a Frame panel.
Semantic heading hierarchy
Configures semantic heading levels to maintain a continuous outline under nested subsections.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Explain the failed operation and provide a realistic recovery action. Preserve usable content and entered values. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use Field Error for one invalid input and Empty for successful zero-result queries. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | 3 | Semantic heading level for ErrorStateTitle, rendering matching native h1 through h6. |
| | — | Optional ARIA role; defaults to neutral root with no live region, overridable to region with aria-labelledby. |
| | — | Root compound container for the error state layout with responsive centered alignment. |
| | — | Header slot that groups media, title, and description with constrained max width. |
| | — | Destructive-tinted icon container; defaults to aria-hidden. |
| | — | Semantic heading slot for the primary error state title. |
| | — | Paragraph slot for supporting error description copy. |
| | — | Content slot for recovery action buttons and secondary controls. |