Data display

EmptyState

What to show when a list has nothing in it yet, and what to do about it.

Importimport { EmptyState } from "@/components/ui/EmptyState";
Sourcesrc/components/ui/EmptyState

An empty list should say what would be here and how to put something in it. Give it an action whenever there is one — an empty state without a next step is a dead end.

Variants

card is the bordered treatment used by the builder's left panels; page is the full-surface treatment used by the CMS manager; plain is a bare stack for anywhere else.

No pages yet

Add a page to start building.

No results

Try a different search.

Props

EmptyState

PropTypeDefaultDescription
titleReactNodeRequired. What is missing.
descriptionReactNodeWhy, or what to do about it.
actionReactNodeThe next step — usually a Button.
iconReactNodeLeading icon.
variant"plain" | "card" | "page""plain"`card` for builder panels, `page` for a full surface.
size"default" | "spacious""default"`spacious` adds vertical room for full-panel empties.