---
title: "Virtualized Data Table"
description: "A bounded native table renderer that virtualizes the final TanStack row model for large loaded datasets."
plan: Pro
docs: https://ui.edbn.me/docs/tables/data-table-virtualized
example: rows
---

# Virtualized Data Table

A bounded native table renderer that virtualizes the final TanStack row model for large loaded datasets.

VirtualizedDataTable renders only the rows in view, plus six of overscan, inside a fixed-height viewport (420px by default) using TanStack Virtual. aria-rowcount and aria-rowindex keep the full count for screen readers.

A live line under the table says how many rows are drawn out of the total, busy covers the rows with a loading notice, and changing resetScrollKey scrolls back to the top. placeholderRows, a tail row and onRangeChange are what the infinite table builds on.

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

## Dependencies
- npm: @tanstack/react-table@^9.2.4, @tanstack/react-virtual@^3.14.10
- edbn: edbn-base, data-table, table

## Usage: Rows

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
- [Rows](https://ui.edbn.me/docs/tables/data-table-virtualized/rows) (Markdown: https://ui.edbn.me/docs/tables/data-table-virtualized.md?demo=rows)
- [Large states](https://ui.edbn.me/docs/tables/data-table-virtualized/large-states) (Markdown: https://ui.edbn.me/docs/tables/data-table-virtualized.md?demo=large-states)

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