Skip to content

Feedback

EmptyState

Stands in for a list or table with nothing to show yet, with the reason and the next step.

  • Experimental
  • No keyboard interaction
  • Screen reader not tested yet

Updated 2026-11-12

Playground

Change the props. The controls come from the documented props.

No users yet

Invite people by email. They get access once they accept.
tsx
<EmptyState title="No users yet" action={<Button>Invite user</Button>}>
  Invite people by email. They get access once they accept.
</EmptyState>

Usage

When to use

Use an empty state wherever a list, table or result has nothing to show: nothing has been created yet, a filter hides everything, or not enough data has come in.

When not to use

  • For errors: use InlineMessage or Banner with the danger tone.
  • For a loading state: show the loading state of the action that fetches the data.

How it works

A dashed outline marks the slot where content will appear. The title is a real heading, so the empty slot is findable by heading navigation; pick its level with as. An optional action offers the next step.

Content guidelines

The title says plainly what is empty: “No users yet”, “No cases match ‘Insurance’”. The text gives the reason and what happens next. The action matches the reason: create the first item, clear the filter, or no action at all while data is still coming in.

Do and don’t

Do
  • Distinguish “nothing yet” from “no results for this filter” and offer the matching action.
Don’t
  • Don't show an empty table with only headers; replace it with EmptyState.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. containerDashed border in border.control: a slot waiting for content.
  2. titleHeading in the body-strong role.
  3. bodySmall text in text.secondary.
  4. actionsOne button.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { EmptyState } from "@/ds";

Nothing yet

No users yet

Invite people by email. They get access once they accept.

No results

No cases match this filter

Try another industry or clear the filter.

Props

Checked against the component's TypeScript type on every build.
EmptyState props
NameTypeDefaultDescription
title (required)string–What is empty, said plainly.
childrenReactNode–Why it is empty and what happens next.
actionReactNode–The next step, usually one Button.
as"h2" | "h3" | "h4""h3"Heading level that fits the page outline.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by EmptyState
TokenTierValueUtility
card.radiuscomponent16px
border.controlsemantic#8A8578
spacing.2semantic8px
spacing.3semantic12px
spacing.6semantic24px
spacing.8semantic32px
text.secondarysemantic#555555
type.small.sizesemantic14px

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Not applicable
Screen readerManualNot tested yet

Semantics and focus

  • The title is a real heading, so the empty slot is findable by heading navigation.