Empty State
empty-stateWhat a list, table or page shows before it has anything in it: a stacked icon, a title, one sentence and the next action. So an empty screen reads as a start rather than an error.
import { Inbox, Plus } from "lucide-react";
import { Button } from "@/components/forme/button/button";
import { EmptyState } from "@/components/forme/empty-state/empty-state";
export function EmptyStateDemo() {
return (
<EmptyState
className="w-full max-w-lg"
icon={<Inbox />}
title="No projects yet"
description="Projects group your deployments, environment variables and domains. Create one to get started."
action={
<>
<Button size="small" leadingIcon={Plus}>
New project
</Button>
<Button size="small" variant="secondary">
Import from Git
</Button>
</>
}
/>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
EmptyState
What a list, a table or a page says when it has nothing in it yet.
| Prop | Type | Default | Description |
|---|---|---|---|
title* | ReactNode | — | |
icon | ReactNode | — | |
description | ReactNode | — | |
action | ReactNode | — | The one thing to do next. An empty state without one is a dead end. |
Also takes every prop of <div> attributes.
Related


Alert
An inline message in four states, with a matching icon, an optional title and room for an action. Only the destructive state interrupts a screen reader; the rest wait their turn.
feedback

Loader
Eight loading indicators — ring, dots, bars, a dot-grid wave and orbit, a terminal braille spinner, a figure-eight comet and sparkles. Pure CSS in a server component, sized in em and coloured by currentColor, with a still frame under reduced motion.
feedback

Progress
A determinate progress bar with its label and value, both announced to a screen reader by the Base UI parts rather than by hand-written aria attributes. A null value renders as indeterminate and dims the track so it reads as waiting.
feedback