Empty state
What a list or table shows before it has anything in it, with the action that adds the first item.
Our choice: A composition, not a component: a data-card section with a heading, one muted sentence and a cluster of button links.
Live example
Empty state
<section data-card aria-labelledby="no-invoices">
<h3 id="no-invoices">No invoices yet</h3>
<p data-text="muted">Invoices you create or import show up here, with their status and amount due.</p>
<p class="cluster">
<a href="#new-invoice" data-button="primary">Create an invoice</a>
<a href="#import" data-button="secondary">Import from CSV</a>
</p>
</section>
Accessibility
- Put the empty state where the list or table would be, under the same page heading, so the page keeps its structure.
- Say what will appear here and how to add it. The first action is the primary button; any other is secondary.
- After a search or filter that matches nothing, say so and offer to clear it, rather than suggesting the person create something.
Specifications
See also
How other systems do it
For comparison only; these are not the standard this system follows.
- Apple Human Interface Guidelines: No equivalent
- Material Design 3: No equivalent
- Vercel Geist: Empty State