Patterns
Empty state
An empty table with only headers looks broken. People need to know whether nothing exists yet, a filter hides everything, or not enough data has come in.
Reference build
Live, built only from system components. Switch the width: the build uses its own breakpoints.
Rules
- Replace the empty table or list with EmptyState; don't render headers without rows.
- The title says plainly what is empty (“No users yet”), not “No data”.
- The text gives the reason and what happens next.
- Offer one action that matches the reason: create the first item, clear the filter, or nothing while data is still coming in.
- Keep the section heading above the empty state, so the page outline stays the same.
Layout and states
What every build of this pattern must hold to. The check runs the required states on the reference build.
- The section head stays; EmptyState takes the place of the table or list, with one action.
- Text and action wrap; nothing moves.
No required states: nothing in this pattern changes on interaction.
Code
import { Button, EmptyState, Heading } from "@/ds";
export function Example() {
return (
<div className="flex flex-col gap-stack-relaxed">
<Heading as="h3">Team</Heading>
<EmptyState title="No users yet" as="h4" action={<Button variant="primary">Invite user</Button>}>
Invite people by email. They get access once they accept.
</EmptyState>
<EmptyState title="No cases match “Insurance”" as="h4" action={<Button variant="secondary">Clear filter</Button>}>
Try another industry or clear the filter.
</EmptyState>
<EmptyState title="Not enough data yet" as="h4">
The trend appears after the first four weeks of requests.
</EmptyState>
</div>
);
}Built from
Seen in: CRM overview “Not enough data yet” (S3).