import { ErrorState } from "@zedtech/zedkit-ui";<ErrorState title="Could not load invoices" description="Check your connection and try again."/>
Live preview: With retry
Preview
Could not load invoices
Check your connection and try again.
With retry
import { Button, ErrorState } from "@zedtech/zedkit-ui";<ErrorState title="Could not load invoices" description="Check your connection and try again." actions={<Button variant="outline">Try again</Button>}/>
Props
Prop
Type
Accessibility
Root is an alert (`role="alert"`). Render it when the failure appears, not on every page load. Title plus description carry the meaning; `actions` is the next step.
The alert is announced twice — do not wrap it in another live region. The retry control is only in the text — pass it as `actions`. A single field failed — use `FieldError` on that field.