+234 Design System

Empty state

What a page says when it has nothing to show. Thirty files write their own version of this today.

Search with no results

Nothing found for “canadian youth visa 2031”

The archive goes back about twenty months. Try a shorter phrase, or browse the visa guides.

HTML
<div class="p234-empty">
  <h3 class="p234-empty__title">Nothing found for &ldquo;canadian youth visa 2031&rdquo;</h3>
  <p class="p234-empty__body">The archive goes back about twenty months. Try a shorter phrase, or browse the visa guides.</p>
  <div class="p234-empty__actions">
    <a class="p234-btn" href="#">Browse visa guides</a>
    <a class="p234-btn p234-btn--secondary" href="#">Clear filters</a>
  </div>
</div>

A filter that excluded everything

No filings match these filters

There are 172 equities reporting today. Widening the date range usually brings results back.

HTML
<div class="p234-empty">
  <h3 class="p234-empty__title">No filings match these filters</h3>
  <p class="p234-empty__body">There are 172 equities reporting today. Widening the date range usually brings results back.</p>
  <div class="p234-empty__actions">
    <button class="p234-btn p234-btn--secondary" type="button">Reset filters</button>
  </div>
</div>

Nothing saved yet

You have not saved anything yet

Save an article and it appears here, on any device you sign in on.

HTML
<div class="p234-empty">
  <h3 class="p234-empty__title">You have not saved anything yet</h3>
  <p class="p234-empty__body">Save an article and it appears here, on any device you sign in on.</p>
  <div class="p234-empty__actions">
    <a class="p234-btn" href="#">Today's stories</a>
  </div>
</div>

Three parts, always

  1. What happened, in the reader's terms, quoting their query where there is one.
  2. Why, when there is a real reason. The archive's depth, a filter that is too narrow, an account with nothing in it yet.
  3. What to do next, as a control they can press.

Rules

Empty is not the same as missing

A page with no content still returns 200 and still renders this component. A page that does not exist returns 404. Getting these the wrong way round is how a site ends up with soft 404s, which is a thing that has already happened here.

Tokens this component reads

--p234-color-ink--p234-color-ink-muted--p234-type-headline-sm-*--p234-type-body-sm-*--p234-space-3--p234-space-5--p234-space-7--p234-measure-text--p234-border-thick