Skip to content
Design System
GitHub

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

ComponentCoversWhenShowsAction
BannerThe whole app, edge to edgeNo connection, maintenance, read-only modeThe condition, with an icon that names itOne at most; no close while the condition holds
Status pagesA whole pageNot found, no access, an error, offline, loadingWhat happened, why and the next stepAlways one: never a dead end
Data stateOne region that fetchesLoading, empty, error, forbidden, staleWords by the error's code; stale keeps the contentTry again on error and stale
Empty stateOne empty placeThe server's total is 0, or a search found nothingWhat is missing, whyThe one action that fills it, or clears the search
SkeletonValues not loaded yetThe first fetch, its shape knownBones where values will be; what is known showsNone
SpinnerOne control or a short waitWork with no measurable progressA turning mark, after 300 msNone

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 dataStateOf picking 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.