# Table Empty 1 - Empty state

> Table with header and a single empty-state row.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/table-table-empty-1).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/table-table-empty-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/table-table-empty-1-light-3886c06530d7b21f.png
- Registry item: https://shadcnblocks.com/r/table-table-empty-1.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/table-table-empty-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `table`

## Files

### `example/table/table-empty-1.tsx`

```tsx
import {
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableHeader,
  TableRow,
} from "@/components/ui/table";

export const title = "Empty state";

const Example = () => (
  <div className="w-full max-w-2xl rounded-md border bg-background">
    <Table>
      <TableHeader>
        <TableRow>
          <TableHead>Name</TableHead>
          <TableHead>Email</TableHead>
          <TableHead>Role</TableHead>
        </TableRow>
      </TableHeader>
      <TableBody>
        <TableRow className="hover:bg-transparent">
          <TableCell
            className="h-24 text-center text-muted-foreground"
            colSpan={3}
          >
            No results.
          </TableCell>
        </TableRow>
      </TableBody>
    </Table>
  </div>
);

export default Example;
```
