---
title: "Table"
description: "Tables with right-aligned figures and headers that repeat across pages."
plan: Pro
docs: https://ui.edbn.me/docs/pdfs/table
---

# Table

Tables with right-aligned figures and headers that repeat across pages.

data-table right-aligns any column whose cells are all figures, such as “$1,250.00”, “-12%” or “+2.1 pts”, or the last few columns when end is set, and widths takes fixed column widths. A last row starting with Total is set in bold under a darker rule, and a captioned table of 12 rows or fewer stays on one page.

line-items builds the invoice, receipt, credit note, quote and purchase order tables, adding Qty and Unit price columns only when an item has them.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/pdf-table
```

## Dependencies
- edbn: pdf-shared

## Usage

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Files
- lib/pdf/components/table.typ (3 lines)
- lib/pdf/templates/table-example.typ (8 lines)
- lib/pdf/examples/components/table.ts (18 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
