DataState, EmptyState, Skeleton, Spinner, status pages or Banner
Ways to say there is nothing to show yet, or nothing at all. They differ in how much of the screen is affected, whether a fetch is behind it, and whether the wait has a shape.
The rule
Ask in order: is the whole app affected, as with no connection? Banner. Can the whole page not open? A status page. Does a region fetch? DataState, which picks the state. Nothing there, with no fetch behind it? EmptyState. Inside a region: Skeleton for content of a known shape, Spinner for an action under way.
Side by side
| Component | Covers | When | Shows | Action |
|---|---|---|---|---|
| Banner | The whole app, edge to edge | No connection, maintenance, read-only mode | The condition, with an icon that names it | One at most; no close while the condition holds |
| Status pages | A whole page | Not found, no access, an error, offline, loading | What happened, why and the next step | Always one: never a dead end |
| Data state | One region that fetches | Loading, empty, error, forbidden, stale | Words by the error's code; stale keeps the content | Try again on error and stale |
| Empty state | One empty place | The server's total is 0, or a search found nothing | What is missing, why | The one action that fills it, or clears the search |
| Skeleton | Values not loaded yet | The first fetch, its shape known | Bones where values will be; what is known shows | None |
| Spinner | One control or a short wait | Work with no measurable progress | A turning mark, after 300 ms | None |
In one line each
- Banner: Offline with the last data still worth reading: say so once at the top, not on every card.
- Status pages: NotFoundPage for another tenant's record, NoAccessPage for a missing permission, ErrorPage, OfflinePage.
- Data state: Every card, table or panel filled from a server, with
dataStateOfpicking the state. - Empty state: A list with nothing yet, a search with no match; inside DataState when a fetch is behind it.
- Skeleton: A card or a table loading; DataState draws it in its loading state.
- Spinner: Inside a button while its action runs; measurable work is Progress.