---
title: "Server Data Table"
description: "A controlled, transport-neutral TanStack Table starter for server-filtered, sorted, and paginated rows."
plan: Pro
docs: https://ui.edbn.me/docs/tables/data-table-server
example: offset
---

# Server Data Table

A controlled, transport-neutral TanStack Table starter for server-filtered, sorted, and paginated rows.

DataTableServer takes a status of idle, loading, refreshing, success, empty or error and draws each in place: placeholder rows on the first load, a message with Retry if it fails, and a small notice only when a refresh takes longer than 300 ms.

Its feature set leaves sorting, filtering and paging to the server, with request types for offset and cursor paging. serializeDataTableRequest and parseDataTableRequest keep page, size, sort, filters and search in the URL, accepting only the columns and page sizes a schema lists.

## 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/data-table-server
```

## Dependencies
- npm: @tanstack/react-table@^9.2.4, lucide-react@^1.33.0
- edbn: edbn-base, data-table, button

## Usage: Offset

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

## Examples
- [Offset](https://ui.edbn.me/docs/tables/data-table-server/offset) (Markdown: https://ui.edbn.me/docs/tables/data-table-server.md?demo=offset)
- [Cursor](https://ui.edbn.me/docs/tables/data-table-server/cursor) (Markdown: https://ui.edbn.me/docs/tables/data-table-server.md?demo=cursor)
- [URL state](https://ui.edbn.me/docs/tables/data-table-server/url-state) (Markdown: https://ui.edbn.me/docs/tables/data-table-server.md?demo=url-state)
- [Failure](https://ui.edbn.me/docs/tables/data-table-server/failure) (Markdown: https://ui.edbn.me/docs/tables/data-table-server.md?demo=failure)

## Files
- components/data-table/server/data-table-server.tsx (156 lines)
- components/data-table/server/data-table-server-features.ts (36 lines)
- components/data-table/server/data-table-server-types.ts (42 lines)
- components/data-table/server/data-table-cursor-pagination.tsx (71 lines)
- components/data-table/server/data-table-url-state.ts (93 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
