Design System
Feedback

Empty state

A centred empty, error or zero-data state — a mark, a title, a supporting line and an action.

Purpose

Fill the void when there is nothing to show — a first-run list, a search with no matches, a record that does not exist. Say what happened, and give one clear way forward.

No claims to show

When a claim is submitted it will appear here.

Flatline

For an error or not-found state, use the brand Pulse as the media — the heartbeat "flatlines". This is the brand motion moment; keep it to one per view.

Flatline

404 — record not found

This record doesn't exist — it may have been moved, or the link has expired.

Offline

A dropped connection is the most literal flatline there is, so it earns the brand moment. It differs from a 404 in one important way: it is recoverable. Lead with "Try again" rather than a way back out, and let the view restore itself when the connection returns.

Offline

You're offline

We can't reach HealthMetrics right now. This page will restore itself once the connection is back.

The system ships no connectivity hook — wire it at the app level. Subscribe to the window online/offline events so the state clears itself, and keep the button bound to a manual refetch:

const [offline, setOffline] = React.useState(false);

React.useEffect(() => {
  const goOffline = () => setOffline(true);
  const goOnline = () => setOffline(false); // auto-recover
  window.addEventListener("offline", goOffline);
  window.addEventListener("online", goOnline);
  return () => {
    window.removeEventListener("offline", goOffline);
    window.removeEventListener("online", goOnline);
  };
}, []);

// Keep the button even though the state auto-recovers. `navigator.onLine` reports
// true behind a captive portal, or on Wi-Fi that is associated but dead — the
// browser believes it is online while every request still fails. The button is the
// only way out of that, so it is not redundant.
if (offline) {
  return (
    <EmptyState kicker="Offline" media={<Pulse height={28} />} title="You're offline" ...>
      <Button onClick={refetch}>Try again</Button>
    </EmptyState>
  );
}

Render this only when the view has nothing left to show. If readable content is still on screen, use a system banner with tone="warning" instead — pulling a readable view out from under someone is worse than the outage. And render it once per offline episode: if the state re-mounts every time connectivity wobbles, the one-shot draw becomes a flicker.

With actions

Pass buttons as children; they sit in a centred row. Lead with the primary path.

No results

Nothing matches those filters

Try widening the date range or clearing a filter.

Best practices

Do

  • Name the state plainly ("No claims yet") and say what will populate it.
  • Offer one primary action; a secondary one at most.
  • Use the Pulse flatline for errors, not-found and offline; an Icon for calm zero-data states.
  • Reach for a system banner when readable content is still on screen.

Don't

  • Leave a blank region with no explanation — silence reads as a bug.
  • Stack multiple calls-to-action; the choice gets lost.
  • Use the brand-motion flatline for routine empty lists — reserve it for error moments.
  • Re-mount the Pulse on every connectivity flap — the one-shot draw is a signature moment, not a flicker.

Accessibility

  • The title and description are plain text, read in order; keep the copy self-explanatory.
  • Actions are real buttons/links — reachable and operable by keyboard like any other.
  • When media is decorative (an Icon or Pulse), it stays out of the accessibility tree.

Props

EmptyState also accepts every native <div> attribute.

PropTypeDefaultDescription
kickerReact.ReactNode—Optional overline above the title — short, uppercase (e.g. "Flatline", "No results").
mediaReact.ReactNode—Visual mark above the heading — an icon, illustration, or the brand `Pulse`.
titlerequiredReact.ReactNode—The headline. Kept concise; the description carries the detail.
descriptionReact.ReactNode—Supporting sentence explaining the state and the way forward.
childrenReact.ReactNode—Actions (e.g. a `Button`), rendered in a centred row below the copy.

On this page