Compositions
ErrorState
Generic error state, composed on Empty. Replaces the five per-feature
"something went wrong" implementations with one primitive: an icon, a
title, an optional message, and an optional retry action.
Usage
Best practices
ErrorStaterenders a failure UI (icon / title / message / retry) but does not catch errors - wrap the throwing subtree in anErrorBoundaryand render this in itsfallback.Pass
retryto show the retry button (omit it to hide); it's built onEmpty, solayout/minHeightprops pass straight through.
Props
Also exports
- interface
ErrorStateProps - type
ErrorStateTone