Empty state

A surface that has loaded and holds nothing. It is not the loading state, which is a Skeleton, and not the error state, which the screen renders itself with a retry. An empty state standing in for either tells the user everything is fine when it is not.

Reach for it

A tab, a list or a card that has loaded and has no rows.

Not for

Standing in for a load or a failure. Those are a Skeleton and an error.

Sizes

comfortable fills a tab panel or a page section. compact is for a card row or a narrow panel, where a tall block pushes the rest off screen. The title is required because the package holds no copy: write the fact, not the apology.

No comments yet

No automated decision

This credit limit was decided by hand.

With an action

Pass an action only when one thing resolves the emptiness. An empty state with three choices is a menu, and the user came here for rows.

No redirection yet

Redirections you add appear here.

API reference

EmptyState

PropTypeDefaultDescription
title*string-The fact, in the reader's language.
data-testidstring-Names the element for a test. Never rendered, never announced.
size'comfortable' | 'compact'comfortable
descriptionstring-One line on what would put something here. Omit when it adds nothing.
iconComponentType<SVGProps<SVGSVGElement> & { size?: number | string; strokeWidth?: number }>-A lucide component. Decorative, so it carries no label.
actionReactNode-The one action that resolves the emptiness, when there is one.