---
title: "Table"
description: "Semantic HTML table parts: header, body, footer, rows, cells, and caption. For sorting and filtering, see Data Table."
plan: Free
docs: https://ui.edbn.me/docs/components/table
---

# Table

Semantic HTML table parts: header, body, footer, rows, cells, and caption. For sorting and filtering, see Data Table.

## Installation

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

## Dependencies
- edbn: edbn-base

## Usage

```tsx examples/table-basic.tsx
"use client";
import {
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableHeader,
  TableRow,
} from "@/components/ui/table";

export default function TableBasicPreview() {
  return (
    <div className="w-full max-w-wide">
      <Table>
        <TableHeader>
          <TableRow>
            <TableHead>Invoice</TableHead>
            <TableHead>Status</TableHead>
            <TableHead className="text-right">Total</TableHead>
          </TableRow>
        </TableHeader>
        <TableBody>
          <TableRow>
            <TableCell>INV-001</TableCell>
            <TableCell>Paid</TableCell>
            <TableCell className="text-right">$250</TableCell>
          </TableRow>
          <TableRow>
            <TableCell>INV-002</TableCell>
            <TableCell>Pending</TableCell>
            <TableCell className="text-right">$150</TableCell>
          </TableRow>
        </TableBody>
      </Table>
    </div>
  );
}
```

## Files
- components/ui/table.tsx (120 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
