---
title: "Infinite Data Table"
description: "A virtualized TanStack Table that loads pages as it scrolls or on Load more, with placeholder rows and retry."
plan: Pro
docs: https://ui.edbn.me/docs/tables/data-table-infinite
example: scroll
---

# Infinite Data Table

A virtualized TanStack Table that loads pages as it scrolls or on Load more, with placeholder rows and retry.

DataTableInfinite calls onLoadMore when the last ten rows (threshold) scroll into view, or when Load more is pressed if mode is button. While loading, pageSize placeholder rows hold the new page’s place; an empty table loads its first page by itself, and scrolling never asks for the same page twice.

Setting error turns the last row into a message with Retry, and a status line counts the rows loaded, out of total when it’s known.

## 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-infinite
```

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

## Usage: Scroll

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
- [Scroll](https://ui.edbn.me/docs/tables/data-table-infinite/scroll) (Markdown: https://ui.edbn.me/docs/tables/data-table-infinite.md?demo=scroll)
- [Load more](https://ui.edbn.me/docs/tables/data-table-infinite/load-more) (Markdown: https://ui.edbn.me/docs/tables/data-table-infinite.md?demo=load-more)
- [Failure](https://ui.edbn.me/docs/tables/data-table-infinite/failure) (Markdown: https://ui.edbn.me/docs/tables/data-table-infinite.md?demo=failure)

## Files
- components/data-table/infinite/data-table-infinite.tsx (124 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
