Empty
Placeholder when a list, page, or region has nothing to show.
What a list, card, chart or page shows when its data failed to load: an icon, what failed, a reference and Try again.
What a list, card, chart or page shows when its data failed to load. Same sizes as Empty.
sm, with a reference and Try again.
Ref 7F3A-91C2
role=alert, a CircleX icon and words, so colour is never the only signal. Name what failed, give a reference people can copy, and pass onRetry for the Try again Button (KitLabels tryAgain). Put it in the space the Skeleton held; focus stays put. After a retry that fails again, focus returns to Try again.
import { LoadError } from "agentic-ds-kit";From contracts/loaderror.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| message | string | Yes | — | What failed, named, like "Couldn't load invoices." Not "Something went wrong". |
| reference | string | No | — | Text people can copy for support, rendered as given in mono under the message, like "Ref 7F3A-91C2". |
| onRetry | function | No | — | Shows a neutral sm "Try again" Button (KitLabels tryAgain). If a retry fails again and focus was lost with the old button, the new LoadError focuses Try again; otherwise focus stays put. |
| size | sm | md | lg | No | sm | Same scale as Empty. sm: in a chart, list or table cell, bare 16px icon and the message on one row. md: a card body, 32px danger tile. lg: a page, 40px tile and a heading-5 message, like Empty lg. |
Placeholder when a list, page, or region has nothing to show.
Inline status banner that stays on the page.
A short note that floats in after an action, like Saved successfully, and goes away on its own after a few seconds, with an optional Undo.
One labeled control with optional hint and an error or success message.