For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/patterns/empty-states.md.

Empty states

Components: EmptyState, EmptyStateIllustration, EmptyStateMessage, EmptyStateTitle, EmptyStateDescription, EmptyStateActions, EmptyStateLink, TableEmptyState

+7 more

Table, SelectEmptyState, FilterDropdownEmpty, FilterCascadeEmpty, Tabs, TabsContent, Button

An empty state is EmptyState placed where the content would be. The header around it stays.

When to use

NeedUseNot
A page table with no rowsTableEmptyState › EmptyState type='collection-empty'Hiding PageHeader or PageToolbar
A table in a drawer or section with no rowsEmptyState type='collection-empty' as a direct Table childTableEmptyState (too tall)
Search or filters matched nothingEmptyState with "Reset filters"A create action
An earlier choice is missing ("Select a service first")EmptyState with no actionsDisabling the section silently
A tab or popover panel with nothing in itEmptyState inside TabsContentHiding the tab
A card, kanban column or chart with no dataEmptyState type='no-results'The icon tile and a pixel title
A Select with no optionsNothing: SelectContent shows SelectEmptyState itselfA hand-built "No results" row
A FilterDropdown search with no matchesFilterDropdownEmptyEmptyState
A FilterCascade search with no matchesNothing: FilterCascadeEmpty shows itselfEmptyState
One missing value in a cell or attributeThe em dash '—'. See Entity tableEmptyState
Data is loadingTable isLoading (skeleton rows)Any empty state
A list or table failed to loadEmptyState in place of the rows, with "Try again"An Alert above an empty table

type sets the scale, not the cause. If the empty area fills a page, table or panel, use collection-empty (the default). If it sits in a small container, use no-results.

Rules

Composition

  • Compose the parts: EmptyState › EmptyStateIllustration (collection-empty only) › EmptyStateMessage › EmptyStateTitle + EmptyStateDescription › EmptyStateActions › EmptyStateLink (optional).
  • collection-empty needs a title and a description. no-results needs one of them: a title in a column or card, a description in a chart.
  • Never pass type to a part. Parts take the scale from EmptyState.
  • There is no size, variant, icon, title or action prop, and no className on TableEmptyState.
  • Never place a bare icon. Put one icon from @wallarm-org/design-system/icons in EmptyStateIllustration and leave its size alone.
  • EmptyState is already a live region (role='status'). Never wrap it in another.

Layout and spacing

  • EmptyState owns its spacing: collection-empty is 256–560px wide with 24px vertical padding and 16px gaps; no-results is 240px wide with 8px padding. Never add py-*, gap-* or w-* to it or its parts.
  • In a page table, wrap it in TableEmptyState: it adds 128px vertical padding and renders only when there are no rows and isLoading is false, so it needs no guard.
  • In a drawer or section table, render EmptyState directly in Table, guarded by data.length === 0 && !isLoading.
  • Never wrap EmptyState in a Card or a bordered box.
  • Keep PageHeader, PageToolbar, section headers and table column headers visible when empty.

Copy and actions

  • Write the title as a short statement: "No rules yet". Never an accusation: "You have no rules".
  • Keep the description to one or two sentences: what the user gets, or what unlocks the area.
  • Show one create action per screen. If PageActions or a section header has the create button, the empty state has no button.
  • If no header has a create button, put Button size='medium' in EmptyStateActions.
  • If search or filters matched nothing, offer "Reset filters" as Button variant='outline' color='neutral'. Never a create action.
  • If a list failed to load, say what failed ("Couldn't load triggers") and offer "Try again" as Button variant='outline' color='neutral'. If access is denied, name the permission and add no button.
  • If a dependency is missing, name the choice that unlocks the area. Never say "No {items} yet".
  • If one area can be dependency-empty or nothing-yet, switch the copy.
  • If each tab can be empty, write copy per tab. Never reuse one sentence across tabs.
  • Pick an icon that names the entity: Users for users, Shapes for rules, CheckCheck for caught up, History for read.
  • Never use an Alert or a toast to say a list is empty.

Examples

A page table with nothing yet: PageActions has the create button, so the empty state has none.

The header, toolbar and column headers stay visible. Typing a search switches the copy to "No results found" with "Reset filters": the app passes its own flag for the cause.

Search or filters matched nothing: reset, never create.

The table has rows: "Reset filters" clears the search and they come back.

A drawer or section table: EmptyState is a direct Table child, hidden while loading.

No TableEmptyState here: its 128px vertical padding is too tall for a section.

A missing dependency: name the choice that unlocks the area, with no action.

The section header stays visible. Never "No operations yet".

Empty tabs: each tab gets its own copy and an icon that names the case.

A notification panel: no action, and every tab stays visible.

Small containers: a kanban column gets a title only, a chart card a description only.

type='no-results' has no illustration. Centre it in the column or the card body.

States

StateShowExample component
LoadingSkeleton rows, no empty stateTable isLoading
Nothing yet, create button in a header"No {items} yet" + what creating one does; no buttonTableEmptyState › EmptyState
Nothing yet, no create button anywhereTitle, description, Button size='medium'EmptyState › EmptyStateActions
Filters matched nothing"No results found" + "Reset filters"EmptyState › EmptyStateActions
Earlier choice missing"Select a service first", no actionEmptyState
Tab emptyPer-tab copy, no action: "You're all caught up" (CheckCheck), "Nothing read yet" (History)EmptyState in TabsContent
Column, card or chart emptyTitle only, or description only in a chartEmptyState type='no-results'
List failed to load"Couldn't load {items}" + "Try again"; while retrying, skeleton rowsEmptyState › EmptyStateActions

What your app owns

  • The cause. The DS cannot tell nothing-yet, filtered and dependency-missing apart. Pass your own flag.
  • Copy. EmptyState has no default strings.
  • Dependency gating. Show the dependency state until the earlier field has a value. See Create and edit forms.
  • Errors. There is no error type: pass the failure and the retry yourself. A failed page, not a list, is your own message in PageContent.
  • Notification center. No popover block exists. Compose Popover, Tabs and EmptyState.
  • Kanban. No kanban component exists. Centre EmptyState type='no-results' in your column.
  • Figma drift. Figma flags the empty state component for an update. Follow the code scale until it changes.