EmptyState

Placeholder for views that have no data to display

Category: display · WCAG 2.2-AA · empty, placeholder, zero-state, no-data

Sizes

Props

PropTypeDefaultDescription
iconReactNodeIcon element rendered in the component.
titlestringTitle text for the component.
descriptionstringSupporting description text.
actionReactNodePrimary action shown in the component.
size'md' | 'lg'mdVisual size of the component (e.g. 'sm', 'md', 'lg').

Design tokens

When to use

When not to use

How to build an accessible EmptyState in React →

Examples

Basic

<EmptyState title="No results" description="Try adjusting your filters." />

With action

<EmptyState icon="📄" title="No documents yet" description="Create your first document to get started." action={<Button>New document</Button>} />

Related components

← Back to docs