---
title: "Empty"
description: "An empty state for lists, tables, and searches with nothing to show, with media, title, description, and actions for the next step."
plan: Free
docs: https://ui.edbn.me/docs/components/empty
---

# Empty

An empty state for lists, tables, and searches with nothing to show, with media, title, description, and actions for the next step.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/empty.json
```

## Dependencies
- npm: class-variance-authority@^0.7.1
- edbn: edbn-base

## Usage

```tsx examples/empty-basic.tsx
"use client";
import { Inbox } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/components/ui/empty";

export default function EmptyBasicPreview() {
  return (
    <Empty className="max-w-dialog">
      <EmptyHeader>
        <EmptyMedia variant="icon">
          <Inbox />
        </EmptyMedia>
        <EmptyTitle>No messages</EmptyTitle>
        <EmptyDescription>You are all caught up.</EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button>Compose</Button>
      </EmptyContent>
    </Empty>
  );
}
```

## Files
- components/ui/empty.tsx (105 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
